
This change adds the option 'activation scripts' to the patch recipe, allowing the user to add one or multiples scripts that will be copied to the patch and added to the metadata. Test plan: PASS - Create patch with one activation script, check if file is on patch and check value in the patch's metadata. PASS - Create patch with multiple activation scripts, check if files are inside the patch and check values in the patch's metadata. PASS - Create patch without any activation script, check if files are inside the patch and check if value in the patch's metadata. PASS - Check if patch-builder fails when patch recipe doesn't have activate script element. Story: 2010676 Task: 51239 Change-Id: I7073f59dfd7eefa0986a39fd70d4207bb437c9ba Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
49 lines
1.9 KiB
XML
49 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
<xs:element name="patch_recipe">
|
|
<xs:complexType>
|
|
<xs:all>
|
|
<xs:element name="sw_version" type="xs:string"/>
|
|
<xs:element name="component" type="xs:string"/>
|
|
<xs:element name="summary" type="xs:string"/>
|
|
<xs:element name="description" type="xs:string"/>
|
|
<xs:element name="install_instructions" type="xs:string"/>
|
|
<xs:element name="warnings" type="xs:string"/>
|
|
<xs:element name="reboot_required" type="xs:string"/>
|
|
<xs:element name="unremovable" type="xs:string"/>
|
|
<xs:element name="status" type="xs:string"/>
|
|
<xs:element name="requires">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="id" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="semantics" type="xs:string"/>
|
|
<xs:element name="pre_install" type="xs:string"/>
|
|
<xs:element name="post_install" type="xs:string"/>
|
|
<xs:element name="activation_scripts">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="script" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="stx_packages">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="package" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="binary_packages">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="package" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:all>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:schema> |