[Piuparts-commits] rev 614 - trunk

Holger Levsen holger at alioth.debian.org
Tue Dec 29 15:41:40 UTC 2009


Author: holger
Date: 2009-12-29 15:41:39 +0000 (Tue, 29 Dec 2009)
New Revision: 614

Modified:
   trunk/piuparts-report.py
Log:
fix counting of reports

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-12-29 14:54:28 UTC (rev 613)
+++ trunk/piuparts-report.py	2009-12-29 15:41:39 UTC (rev 614)
@@ -33,6 +33,7 @@
 import shutil
 import string
 import re
+import string
 
 # if python-rpy ain't installed, we don't draw fancy graphs
 try:
@@ -859,8 +860,8 @@
              }))
             f.close()
             if state == "failed-testing":
-              count_bugged = count(analysis,"/bugged/")-1 
-              count_failed = count(analysis,"/fail/")-1 
+              count_bugged = string.count(analysis,"/bugged/")-1 
+              count_failed = string.count(analysis,"/fail/")-1 
               if count_bugged != 0 or count_failed != 0:
                 substats = ": "
               if count_bugged != 0:




More information about the Piuparts-commits mailing list