# HG changeset patch # User Bjoern Ricks # Date 1279794400 0 # Node ID ecc671a84a73f645a86d77c42c82bc8dd9a5e9fc # Parent 02d498ee90b8e439198348bfc05af25a81eb6f91 fixed small bugs diff -r 02d498ee90b8 -r ecc671a84a73 bin/publishdebianpackages.py --- 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): diff -r 02d498ee90b8 -r ecc671a84a73 treepkg/info/status.py --- 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()