summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2009-12-31 01:46:23 +0100
committerSebastian Pipping <sebastian@pipping.org>2009-12-31 01:46:23 +0100
commit2eed448800138c6aea8b7beec24537ae48244ccd (patch)
treeb301813f10789c394a2ce0d51987c94f9386d678
parentTake dirmode into account (diff)
downloadrepositories-xml-format-2eed448800138c6aea8b7beec24537ae48244ccd.tar.gz
repositories-xml-format-2eed448800138c6aea8b7beec24537ae48244ccd.tar.bz2
repositories-xml-format-2eed448800138c6aea8b7beec24537ae48244ccd.zip
Add missing attributes "format", "subpath" and "category" to layman-global.txt spec
-rw-r--r--schema/layman-global.dtd5
-rw-r--r--schema/layman-global.rng18
2 files changed, 22 insertions, 1 deletions
diff --git a/schema/layman-global.dtd b/schema/layman-global.dtd
index a7ffcea..dc608fc 100644
--- a/schema/layman-global.dtd
+++ b/schema/layman-global.dtd
@@ -16,7 +16,10 @@
priority CDATA '50'
src CDATA #REQUIRED
status (official|unofficial) 'unofficial'
- type (bzr|darcs|git|mercurial|rsync|svn|tar) #REQUIRED>
+ type (bzr|darcs|git|mercurial|rsync|svn|tar) #REQUIRED
+ format (bz2|gz) #IMPLIED
+ subpath CDATA #IMPLIED
+ category CDATA #IMPLIED>
<!ELEMENT link (#PCDATA)>
<!ATTLIST link
diff --git a/schema/layman-global.rng b/schema/layman-global.rng
index 52172a9..215e30c 100644
--- a/schema/layman-global.rng
+++ b/schema/layman-global.rng
@@ -45,6 +45,24 @@
<value>tar</value>
</choice>
</attribute>
+ <optional>
+ <attribute name="format">
+ <choice>
+ <value>bz2</value>
+ <value>gz</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="subpath">
+ <text/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="category">
+ <text/>
+ </attribute>
+ </optional>
<interleave>
<optional>
<element name="link">