[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-701-g79736e3

Andreas Beckmann debian at abeckmann.de
Thu Jun 14 10:09:07 UTC 2012


The following commit has been merged in the develop branch:
commit 90c69b758b821aab62ee1b02dd6c999a12903c52
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Wed Jun 13 00:46:45 2012 +0200

    p-r: fix counting logfiles with relative adressing
    
    use patterns like '"bugged/' instead of '/bugged/' because
    detect_well_known_errors now generates relative links
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/piuparts-report.py b/piuparts-report.py
index 9fd2390..388862c 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -964,9 +964,9 @@ class Section:
                }))
               f.close()
               if state == "failed-testing":
-                count_bugged = string.count(rows,"/bugged/")
-                count_affected = string.count(rows,"/affected/")
-                count_failed = string.count(rows,"/fail/") 
+                count_bugged = string.count(rows, '"bugged/')
+                count_affected = string.count(rows, '"affected/')
+                count_failed = string.count(rows, '"fail/')
                 sep = ": "
                 if count_bugged > 0:
                   substats += sep + "%s bugged" % count_bugged
@@ -977,7 +977,7 @@ class Section:
                 if count_failed > 0:
                   substats += sep + "<span id=\"needs-bugging\">%s failed</span>" % count_failed
               else:
-                  count_passed = string.count(rows,"/pass/")
+                  count_passed = string.count(rows, '"pass/')
                   if count_passed > 0:
                     substats += ": %s passed" % count_passed
               link += "<li><a href=%s>%s</a>%s</li>" % (

-- 
piuparts git repository



More information about the Piuparts-commits mailing list