[Piuparts-commits] rev 304 - in trunk: . debian

Holger Levsen holger at alioth.debian.org
Sun Mar 29 11:53:44 UTC 2009


Author: holger
Date: 2009-03-29 11:53:44 +0000 (Sun, 29 Mar 2009)
New Revision: 304

Modified:
   trunk/TODO
   trunk/debian/changelog
   trunk/piuparts-report.py
Log:
generate counts.txt (per section) with raw numbers of packages per state,
include these stats in the debug output (so it gets included in the mails
send by cron.)

Modified: trunk/TODO
===================================================================
--- trunk/TODO	2009-03-28 10:58:15 UTC (rev 303)
+++ trunk/TODO	2009-03-29 11:53:44 UTC (rev 304)
@@ -9,7 +9,6 @@
 - create $section_packages.txt with into about all packages 
 -- write_packages_summary() is not used atm
 - then R
-- include the stats in the daily report mail
 - better header (link to FAQ, point out to read the bottom first..) for piuparts-logs
 - master.log is hardcoded in p-master.py?!
 - take care of old conf files on upgrades

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2009-03-28 10:58:15 UTC (rev 303)
+++ trunk/debian/changelog	2009-03-29 11:53:44 UTC (rev 304)
@@ -37,7 +37,9 @@
       value "sections". 
     - provide links to logfiles in statistics page.
     - improve layout, generate navigation for the pages.
-    - generate counts.txt (per section) with raw numbers of packages per state.
+    - generate counts.txt (per section) with raw numbers of packages per state,
+      include these stats in the debug output (so it gets included in the mails
+      send by cron.)
   * Break backwards compatibility of the configuration files for master-slave-
     mode. Merge those three into one: /etc/piuparts/piuparts/piuparts.conf.
     Introduce a new global section in piuparts.conf which is shared among the

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-03-28 10:58:15 UTC (rev 303)
+++ trunk/piuparts-report.py	2009-03-29 11:53:44 UTC (rev 304)
@@ -607,6 +607,8 @@
         if not os.path.isfile("counts.txt"):
           write_file("counts.txt", header)
         append_file("counts.txt", counts)
+        logging.debug("States: %s" % header)
+        logging.debug("Counts: %s" % counts)
 
     def find_log(self, package):
         n = self._db._logdb._log_name(package["Package"], package["Version"])




More information about the Piuparts-commits mailing list