[Piuparts-commits] rev 308 - trunk

Holger Levsen holger at alioth.debian.org
Wed Apr 1 12:58:11 UTC 2009


Author: holger
Date: 2009-04-01 12:58:11 +0000 (Wed, 01 Apr 2009)
New Revision: 308

Modified:
   trunk/piuparts-report.py
Log:
syntax is easy, logic is harder

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-04-01 11:48:25 UTC (rev 307)
+++ trunk/piuparts-report.py	2009-04-01 12:58:11 UTC (rev 308)
@@ -599,9 +599,10 @@
         header = "date"
         counts = "%s" % time.strftime("%Y%m%d")
         for state in st.get_states():
+            count = len(st.get_packages_in_state(state))
             header += ", %s" % state
-            counts += ", %s" % len(st.get_packages_in_state(state))
-            logging.debug("%s: %s" % (header, counts))
+            counts += ", %s" % count
+            logging.debug("%s: %s" % (state, count))
         header += "\n"       
         counts += "\n"       
  




More information about the Piuparts-commits mailing list