diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-01-11 22:32:46 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-01-11 22:32:46 +0100 |
commit | ee84610406e2f3d261acc4b7d90a61fba00cc7b3 (patch) | |
tree | 76025aca0d5f80902c4a26ffd37147b95fa37f6b /bin | |
parent | 5f48a6a18d339ae214c3570fcef9af0eb5788399 (diff) | |
download | jenkins.debian.net-ee84610406e2f3d261acc4b7d90a61fba00cc7b3.tar.xz |
reproducible Debian: correctly count packages which make piuparts crash or timeout
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_breakages.py | 10 |
1 files 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 += '<br/> <a href="https://tests.reproducible-builds.org/debian/artifacts/">Artifacts diffoscope crashed</a> on are available for 48h for download.' # pbuilder-satisfydepends failed html += _gen_packages_html('failed to satisfy their build-dependencies:', |