[Piuparts-commits] rev 481 - trunk

Holger Levsen holger at alioth.debian.org
Tue Aug 11 09:04:40 UTC 2009


Author: holger
Date: 2009-08-11 09:04:39 +0000 (Tue, 11 Aug 2009)
New Revision: 481

Modified:
   trunk/piuparts-report.py
Log:
bugfix, dont choke if no statistic data has been written yet

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-08-09 23:11:06 UTC (rev 480)
+++ trunk/piuparts-report.py	2009-08-11 09:04:39 UTC (rev 481)
@@ -645,6 +645,7 @@
         if not os.path.isfile(countsfile):
           logging.debug("writing new file: %s" % countsfile) 
           write_file(countsfile, header)
+          last_line = ""
         else:
           last_line = read_file(countsfile)[-1]
         if not current_day in last_line:




More information about the Piuparts-commits mailing list