[Treepkg-commits] r369 - in branches/treepkg-status: bin treepkg/info

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 22 12:26:41 CEST 2010


Author: bricks
Date: 2010-07-22 12:26:40 +0200 (Thu, 22 Jul 2010)
New Revision: 369

Modified:
   branches/treepkg-status/bin/publishdebianpackages.py
   branches/treepkg-status/treepkg/info/status.py
Log:
fixed small bugs


Modified: branches/treepkg-status/bin/publishdebianpackages.py
===================================================================
--- branches/treepkg-status/bin/publishdebianpackages.py	2010-07-22 10:17:42 UTC (rev 368)
+++ branches/treepkg-status/bin/publishdebianpackages.py	2010-07-22 10:26:40 UTC (rev 369)
@@ -72,7 +72,7 @@
                                      " --newest=$num_newest",
                                      #runremote=runremote,
                                      runremote="",
-                                     **variables)).splitlines()
+                                     **variables))
     return TreepkgInfo.fromxml(xml)
 
 def get_binary_arch(arch): 

Modified: branches/treepkg-status/treepkg/info/status.py
===================================================================
--- branches/treepkg-status/treepkg/info/status.py	2010-07-22 10:17:42 UTC (rev 368)
+++ branches/treepkg-status/treepkg/info/status.py	2010-07-22 10:26:40 UTC (rev 369)
@@ -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()



More information about the Treepkg-commits mailing list