Mercurial > treepkg
changeset 409:ecc671a84a73 treepkg-status
fixed small bugs
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Thu, 22 Jul 2010 10:26:40 +0000 |
parents | 02d498ee90b8 |
children | 5e8546444a8e |
files | bin/publishdebianpackages.py treepkg/info/status.py |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/publishdebianpackages.py Thu Jul 22 10:17:42 2010 +0000 +++ b/bin/publishdebianpackages.py Thu Jul 22 10:26:40 2010 +0000 @@ -72,7 +72,7 @@ " --newest=$num_newest", #runremote=runremote, runremote="", - **variables)).splitlines() + **variables)) return TreepkgInfo.fromxml(xml) def get_binary_arch(arch):
--- a/treepkg/info/status.py Thu Jul 22 10:17:42 2010 +0000 +++ b/treepkg/info/status.py Thu Jul 22 10:26:40 2010 +0000 @@ -67,12 +67,13 @@ return self.tpkgroot.toxml() @staticmethod - def fromxml(xml): - doc = xml.dom.minidom.parseString(xml) + def fromxml(xmlstr): + doc = xml.dom.minidom.parseString(xmlstr) root = doc.documentElement if not root.tagName == "treepkg": - raise TreepkgInfoException("XML is not valid for treepkfinfo") - return TreepkgRootInfo.fromxml(root) # FIXME + print xmlstr + raise TreepkgInfoException("XML is not valid for treepkginfo") + return TreepkgRootInfo.fromxml(root) def add_revisions(self, track, trackinfo): revisions = track.get_revisions()