summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorXimin Luo <infinity0@debian.org>2016-06-11 16:52:27 +0200
committerHolger Levsen <holger@layer-acht.org>2016-06-11 16:53:42 +0200
commit10624f7c479d57707939fcfdf12191cb7ce3dd0e (patch)
tree35bb3e911e2ab14cb2224187f152cbe03506c409 /bin
parent9fcd21f8b5947cb4a6a988715a90a14680466785 (diff)
downloadjenkins.debian.net-10624f7c479d57707939fcfdf12191cb7ce3dd0e.tar.xz
reproducible debian: don't ignore packages with 0 popcon
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_notes.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index e26b0713..5819a05b 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -410,7 +410,9 @@ def index_issues(issues, scorefuncs):
for scorefunc in scorefuncs.values():
html += tab*4 + '<td><b>' + str(scorefunc(issues_list)) + '</b></td>\n'
html += tab*4 + '<td>\n'
- issues_with_popcon = sorted(popcon.package(*issues_list).items(), key=lambda p: p[0])
+ popcon_dict = dict((p, 0) for p in issues_list)
+ popcon_dict.update(popcon.package(*issues_list))
+ issues_with_popcon = sorted(popcon_dict.items(), key=lambda p: p[0])
issues_by_popcon = sorted(issues_with_popcon, key=lambda p: p[1], reverse=True)
popular_packages = set([p[0] for p in issues_by_popcon[:int(len(issues_by_popcon)/4)]])
issue_strings = [