[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51
David Steele
dsteele at gmail.com
Wed May 15 10:09:35 UTC 2013
The following commit has been merged in the master branch:
commit 782f65840a8a6085c98fdcf93081fafd3c24643d
Author: David Steele <dsteele at gmail.com>
Date: Wed Jan 9 21:58:26 2013 -0500
detect_well_known_errors.py - Print failures to match bash script.
At this point, the python script has the same kpr, tpl, and command
outputs as the previous bash script, with the following caveats:
* sort order has minor differences (non-alphanumeric char priority)
* The COMMAND always shows on one line
* command_not_found package list is a superset. Random inspection
of the extra logs shows the Python script to be correct.
diff --git a/master-bin/detect_well_known_errors.py b/master-bin/detect_well_known_errors.py
index a4d5362..daff582 100755
--- a/master-bin/detect_well_known_errors.py
+++ b/master-bin/detect_well_known_errors.py
@@ -348,13 +348,23 @@ def process_section( section, config, problem_list ):
update_html( section, logdict, problem_list, failures, config )
+ return( del_cnt, add_cnt, failures )
+
def detect_well_known_errors( config, problem_list ):
for section in config['sections'].split(" "):
print time.strftime( "%a %b %2d %H:%M:%S %Z %Y", time.localtime() )
print "%s:" % section
- process_section( section, config, problem_list )
+ ( del_cnt, add_cnt, failures ) = \
+ process_section( section, config, problem_list )
+
+ print "parsed logfiles: %d removed, %d added" % (del_cnt, add_cnt)
+
+ for prob in problem_list:
+ pcount = len(failures.filtered(prob.name))
+ if pcount:
+ print "%7d %s" % (pcount, prob.name)
print time.strftime( "%a %b %2d %H:%M:%S %Z %Y", time.localtime() )
--
piuparts git repository
More information about the Piuparts-commits
mailing list