summaryrefslogtreecommitdiffstats
path: root/schemas/pkglist.xsd
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-04-11 14:21:21 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-04-11 14:21:21 +0000
commit554a954c7c83207761f77cb691ed5fcb0354ef7f (patch)
treecca2902aa12d82bc2e0cf5283d4c699cac71517f /schemas/pkglist.xsd
parentc84a80a119b2ca846d6ba3649d8274c532e01158 (diff)
downloadbcfg2-554a954c7c83207761f77cb691ed5fcb0354ef7f.tar.gz
bcfg2-554a954c7c83207761f77cb691ed5fcb0354ef7f.tar.bz2
bcfg2-554a954c7c83207761f77cb691ed5fcb0354ef7f.zip
Add enumerated type for package type attributes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1832 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'schemas/pkglist.xsd')
-rw-r--r--schemas/pkglist.xsd12
1 files changed, 10 insertions, 2 deletions
diff --git a/schemas/pkglist.xsd b/schemas/pkglist.xsd
index 660fe3a7d..231942a5b 100644
--- a/schemas/pkglist.xsd
+++ b/schemas/pkglist.xsd
@@ -25,15 +25,23 @@
<xsd:attribute name='name' type='xsd:string'/>
</xsd:complexType>
+ <xsd:simpleType name='PackageTypeType'>
+ <xsd:restriction base='xsd:string'>
+ <xsd:enumeration value='deb' />
+ <xsd:enumeration value='rpm' />
+ <xsd:enumeration value='encap' />
+ <xsd:enumeration value='sysv' />
+ </xsd:restriction>
+ </xsd:simpleType>
+
<xsd:element name='PackageList'>
<xsd:complexType>
<xsd:choice minOccurs='0' maxOccurs='unbounded'>
<xsd:element name='Group' type='ContainerType'/>
</xsd:choice>
<xsd:attribute name='priority' type='xsd:integer' use='required'/>
- <xsd:attribute name='type' type='xsd:string' use='required'/>
+ <xsd:attribute name='type' use='optional' type='PackageTypeType' />
<xsd:attribute name='uri' type='xsd:string' use='optional'/>
</xsd:complexType>
</xsd:element>
-
</xsd:schema> \ No newline at end of file