use the mdname for the 'href' element, so it doesn't explode when dealing with xml...
authorLuke Macken <lmacken@redhat.com>
Sun, 22 Oct 2006 03:00:42 +0000 (03:00 +0000)
committerLuke Macken <lmacken@redhat.com>
Sun, 22 Oct 2006 03:00:42 +0000 (03:00 +0000)
ChangeLog
modifyrepo.py

index 5efc8c0ca6544fd20ff1ab4ee5fbcd4c3bde53c3..17035fd272956a42837dede471781f50e8424ea4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-21 10:54  lmacken
+
+       * modifyrepo.py: use the mdname for the 'href' element, so it doesn't
+       explode when dealing with xml.dom.minidom.Document objects.
+
 2006-10-14 01:30  lmacken
 
        * Makefile, bin/Makefile, createrepo.spec: Makefile changes for
index 4cba0e5b7ec16d5e6c31e5847361e4c18fe81a70..30abe1cdb9ea8cb8718617e99ff468e68b06ef20 100755 (executable)
@@ -94,7 +94,7 @@ class RepoMetadata:
         root = self.doc.firstChild
         data = self._insert_element(root, 'data', attrs={ 'type' : mdtype })
         self._insert_element(data, 'location',
-                             attrs={ 'href' : 'repodata/' + metadata })
+                             attrs={ 'href' : 'repodata/' + mdname })
         self._insert_element(data, 'checksum', attrs={ 'type' : 'sha' },
                              text=sha.new(newmd).hexdigest())
         self._insert_element(data, 'timestamp',