From ee84610406e2f3d261acc4b7d90a61fba00cc7b3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 11 Jan 2017 22:32:46 +0100 Subject: reproducible Debian: correctly count packages which make piuparts crash or timeout Signed-off-by: Holger Levsen --- bin/reproducible_html_breakages.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py index 629d12b7..0655923b 100755 --- a/bin/reproducible_html_breakages.py +++ b/bin/reproducible_html_breakages.py @@ -44,6 +44,12 @@ def unrep_with_dbd_issues(): sources_without_dbd.append(pkg) return without_dbd, bad_dbd, sources_without_dbd +def count_pkgs(pkgs_to_count=[]): + counted_pkgs = [] + for pkg, version, suite, arch in pkgs_to_count: + if pkg not in counted_pkgs: + counted_pkgs.append(pkg) + return len(counted_pkgs) def not_unrep_with_dbd_file(): log.info('running not_unrep_with_dbd_file check...') @@ -312,8 +318,8 @@ def gen_html(): # TODO: graph this html += str(len(sources_without_dbd)) html += ' source packages on which diffoscope ran into a timeout (' - html += str(len(without_dbd)) + ') or crashed (' - html += str(len(bad_dbd)) + ').' + html += str(count_pkgs(without_dbd)) + ') or crashed (' + html += str(count_pkgs(bad_dbd)) + ').' html += '
Artifacts diffoscope crashed on are available for 48h for download.' # pbuilder-satisfydepends failed html += _gen_packages_html('failed to satisfy their build-dependencies:', -- cgit v1.2.3-70-g09d2