
This commit add the deploy_precheck element to XML, allowing the patch writer to add script used on the pre-check process of the deploy. Test Plan: - Enter the builder container $ stx shell $ cd $MY_REPO/build-tools/stx/patch - Build patch $ ./patch_builder.py --recipe EXAMPLES/patch-recipe-sample.xml - Verify if file has been added to .patch Story: 2010676 Task: 49013 Change-Id: I18ae7fcbf046362d53a67bc290ffc9b1a0b888ad Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
43 lines
1.7 KiB
XML
43 lines
1.7 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="deploy_precheck" type="xs:string"/>
|
|
<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> |