From: Luke Macken Date: Sun, 22 Oct 2006 03:00:42 +0000 (+0000) Subject: use the mdname for the 'href' element, so it doesn't explode when dealing with xml... X-Git-Tag: upstream/0.9.9~218 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3397b3af645552e8ebb585e2de51b183629f1153;p=tools%2Fcreaterepo.git use the mdname for the 'href' element, so it doesn't explode when dealing with xml.dom.minidom.Document objects. --- diff --git a/ChangeLog b/ChangeLog index 5efc8c0..17035fd 100644 --- 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 diff --git a/modifyrepo.py b/modifyrepo.py index 4cba0e5..30abe1c 100755 --- a/modifyrepo.py +++ b/modifyrepo.py @@ -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',