relaxng: add 'arch' attr for <group/category/environment>

I assume it has the same meaning as for <packagereq> where it was
allowed previously.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-12-03 12:21:14 +01:00
parent 2d61d02cbf
commit b4f7e942b2

View File

@ -43,6 +43,9 @@
<element name="group"> <element name="group">
<!-- Example documentation. Please add more. --> <!-- Example documentation. Please add more. -->
<a:documentation>This defines a package group.</a:documentation> <a:documentation>This defines a package group.</a:documentation>
<optional>
<ref name="arch"/>
</optional>
<optional> <optional>
<ref name="variant"/> <ref name="variant"/>
</optional> </optional>
@ -147,9 +150,7 @@
</attribute> </attribute>
</optional> </optional>
<optional> <optional>
<attribute name="arch"> <ref name="arch"/>
<ref name="string"/>
</attribute>
</optional> </optional>
<optional> <optional>
<ref name="variant"/> <ref name="variant"/>
@ -159,6 +160,9 @@
</define> </define>
<define name="environment"> <define name="environment">
<element name="environment"> <element name="environment">
<optional>
<ref name="arch"/>
</optional>
<optional> <optional>
<ref name="variant"/> <ref name="variant"/>
</optional> </optional>
@ -178,6 +182,9 @@
</define> </define>
<define name="category"> <define name="category">
<element name="category"> <element name="category">
<optional>
<ref name="arch"/>
</optional>
<optional> <optional>
<ref name="variant"/> <ref name="variant"/>
</optional> </optional>
@ -344,6 +351,11 @@
</zeroOrMore> </zeroOrMore>
</element> </element>
</define> </define>
<define name="arch">
<attribute name="arch">
<ref name="string"/>
</attribute>
</define>
<define name="variant"> <define name="variant">
<attribute name="variant"> <attribute name="variant">
<data type="string"/> <data type="string"/>