[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51
David Steele
dsteele at gmail.com
Wed May 15 10:09:37 UTC 2013
The following commit has been merged in the master branch:
commit 0ebd97517c7b3b6daf5a4485a9bc6868b03b67d0
Author: David Steele <dsteele at gmail.com>
Date: Thu Jan 10 23:56:21 2013 -0500
detect_well_known_errors - Display the reverse dependency count.
diff --git a/master-bin/detect_well_known_errors b/master-bin/detect_well_known_errors
index 832e67c..a42b11e 100755
--- a/master-bin/detect_well_known_errors
+++ b/master-bin/detect_well_known_errors
@@ -36,7 +36,7 @@ TPL_EXT = '.tpl'
PROB_TPL = \
"""<table class="righttable"><tr class="titlerow"><td class="titlecell">
-$HEADER in $SECTION
+$HEADER in $SECTION, sorted by reverse dependency count.
</td></tr><tr class="normalrow"><td class="contentcell2">
$HELPTEXT
<p>The commandline to find these logs is: <pre>
@@ -50,7 +50,7 @@ $PACKAGE_LIST</ul>
UNKNOWN_TPL = \
"""<table class="righttable"><tr class="titlerow"><td class="titlecell">
-Packages with unknown failures detected in $SECTION
+Packages with unknown failures detected in $SECTION, sorted by reverse dependency count.
</td></tr><tr class="normalrow"><td class="contentcell2">
<p>Please investigate and improve detection of known error types!</p>
</td></tr><tr class="titlerow"><td class="alerttitlecell">Please file bugs!</td></tr><tr class="normalrow"><td class="contentcell2" colspan="3">
@@ -61,7 +61,7 @@ $PACKAGE_LIST
"""
PKG_ERROR_TPL = \
-"""<li><a href=\"$LOG\">$LOG</a>
+"""<li>$RDEPS - <a href=\"$LOG\">$LOG</a>
(<a href=\"http://bugs.debian.org/$PACKAGE?dist=unstable\" target=\"_blank\">BTS</a>)
$BUG</li>
"""
@@ -306,7 +306,7 @@ def populate_tpl( tmpl, vals ):
return tmpl
-def update_tpl( basedir, section, problem, failures, logdict, ftpl, ptpl ):
+def update_tpl( basedir, section, problem, failures, logdict, ftpl, ptpl, pkgsdb ):
pkg_text = ""
for failure in failures:
@@ -315,6 +315,7 @@ def update_tpl( basedir, section, problem, failures, logdict, ftpl, ptpl ):
'LOG': section_path(logdict[failure.pkgspec]),
'PACKAGE': get_pkg(failure.pkgspec),
'BUG': get_bug_text(logdict[failure.pkgspec]),
+ 'RDEPS': pkgsdb.get_package(failure.pkgspec.split('_')[0]).rrdep_count()
} )
if len(pkg_text):
@@ -331,7 +332,7 @@ def update_tpl( basedir, section, problem, failures, logdict, ftpl, ptpl ):
pf.write( tpl_text )
pf.close()
-def update_html( section, logdict, problem_list, failures, config ):
+def update_html( section, logdict, problem_list, failures, config, pkgsdb ):
html_dir = os.path.join( config['output-directory'], section )
if not os.path.exists( html_dir ):
@@ -341,7 +342,7 @@ def update_html( section, logdict, problem_list, failures, config ):
update_tpl( html_dir, section, problem,
failures.filtered(problem.name),
logdict,
- PKG_ERROR_TPL, PROB_TPL )
+ PKG_ERROR_TPL, PROB_TPL, pkgsdb )
# Make a failure list of all failed packages that don't show up as known
failedpkgs = set([x for x in logdict.keys()
@@ -362,7 +363,7 @@ def update_html( section, logdict, problem_list, failures, config ):
update_tpl( html_dir, section, problem_list[0], unknownsasfailures,
logdict,
- PKG_ERROR_TPL, UNKNOWN_TPL, )
+ PKG_ERROR_TPL, UNKNOWN_TPL, pkgsdb )
def process_section( section, config, problem_list, pkgsdb=None ):
""" Update .bug and .kpr files for logs in this section """
@@ -412,7 +413,7 @@ def process_section( section, config, problem_list, pkgsdb=None ):
failures = FailureManager( logdict )
failures.sort_by_rdeps(pkgsdb)
- update_html( section, logdict, problem_list, failures, config )
+ update_html( section, logdict, problem_list, failures, config, pkgsdb )
return( del_cnt, add_cnt, failures )
--
piuparts git repository
More information about the Piuparts-commits
mailing list