added pattern to repomd testsuite and RNC/RNG
authorJiri Srain <jsrain@suse.cz>
Thu, 19 Jan 2006 14:07:57 +0000 (14:07 +0000)
committerJiri Srain <jsrain@suse.cz>
Thu, 19 Jan 2006 14:07:57 +0000 (14:07 +0000)
devel/devel.jsrain/yum/YUMParser.test/repmod.xml [deleted symlink]
testsuite/parser/tests/yum-repomd-1.out
testsuite/parser/tests/yum-repomd-1.xml
zypp/parser/yum/schema/repomd.rnc
zypp/parser/yum/schema/repomd.rng

diff --git a/devel/devel.jsrain/yum/YUMParser.test/repmod.xml b/devel/devel.jsrain/yum/YUMParser.test/repmod.xml
deleted file mode 120000 (symlink)
index cb7c727..0000000
+++ /dev/null
@@ -1 +0,0 @@
-001-repomd-correct.test.xml
\ No newline at end of file
index 3357d23..a02bf05 100644 (file)
@@ -46,4 +46,12 @@ Repomd Data:
   timestamp: '1119534896'
   openChecksumType: 'sha'
   openChecksum: 'e8f9b1f8b3aa049ba3e3e813ee33e37302e9b16a'
+Repomd Data: 
+  type: 'pattern'
+  location: 'repodata/pattern.xml'
+  checksumType: 'sha'
+  checksum: '20f45621426fcd74364d6fabe6929d1164797801'
+  timestamp: '1119534896'
+  openChecksumType: 'sha'
+  openChecksum: 'e8f9b1f8b3aa049ba3e3e813ee33e37302e9b16a'
 Exit Code: 0
index 99fb851..d856736 100644 (file)
     <timestamp>1119534896</timestamp>
     <open-checksum type="sha">e8f9b1f8b3aa049ba3e3e813ee33e37302e9b16a</open-checksum>
   </data>
+  <data type="pattern">
+    <location href="repodata/pattern.xml"/>
+    <checksum type="sha">20f45621426fcd74364d6fabe6929d1164797801</checksum>
+    <timestamp>1119534896</timestamp>
+    <open-checksum type="sha">e8f9b1f8b3aa049ba3e3e813ee33e37302e9b16a</open-checksum>
+  </data>
 </repomd>
index 2adde87..88a625f 100644 (file)
@@ -2,7 +2,7 @@ default namespace = "http://linux.duke.edu/metadata/repo"
 
 element repomd {
   element data {
-    attribute type { "other" | "filelists" | "primary" | "group" | "product" | "patches" }&
+    attribute type { "other" | "filelists" | "primary" | "group" | "product" | "patches" | "pattern" }&
     element location {
       attribute xml:base { xsd:anyURI }?,
       attribute href { xsd:anyURI },
index 1b39946..94e81dc 100644 (file)
@@ -12,6 +12,7 @@
               <value>group</value>
               <value>product</value>
               <value>patches</value>
+              <value>pattern</value>
             </choice>
           </attribute>
           <element name="location">