summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorXimin Luo <infinity0@debian.org>2016-06-14 21:43:06 +0200
committerHolger Levsen <holger@layer-acht.org>2016-06-14 22:11:30 +0200
commit628b86e1dccf03c429a486162e6c0d12ee3a03cd (patch)
tree8c1102c26f457cfae40c3b7c16487606da8db692 /bin
parentb323cdd195f68a607533d2c2e8f7209744edb3dc (diff)
downloadjenkins.debian.net-628b86e1dccf03c429a486162e6c0d12ee3a03cd.tar.xz
reproducible debian: more descriptive names for issue score columns
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_notes.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 11bcc0ff..db55e2da 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -415,7 +415,9 @@ def index_issues(issues, scorefuncs):
+ "".join(
tab*3 + k + "\n" + tab*2 + "</th>\n" + tab*2 + "<th>\n"
for k in scorefuncs.keys()) \
- + tab*3 + "Affected packages\n" + tab*2 + "</th>\n" + tab + "</tr>\n"
+ + tab*3 + "Affected packages<br/>\n" \
+ + tab*3 + "(the 1/4 most-popular are underlined)\n" \
+ + tab*2 + "</th>\n" + tab + "</tr>\n"
html = (tab*2).join(templ.splitlines(True))
for issue in sorted(issues, key=lambda issue: sort_issues(firstscorefunc, issue)):
html += tab*3 + '<tr>\n'
@@ -457,9 +459,12 @@ if __name__ == '__main__':
iterate_over_notes(notes)
iterate_over_issues(issues)
index_issues(issues, OrderedDict([
- ('Total popcon score', lambda l: sum(popcon.package(*l).values())),
- ('Total of sqrt(popcon score)', lambda l: int(sum(map(sqrt, popcon.package(*l).values())))),
- ('Total number', len),
+ ("Sum of packages' popcon scores",
+ lambda l: sum(popcon.package(*l).values())),
+ ("Sum of square-roots of packages' popcon scores",
+ lambda l: int(sum(map(sqrt, popcon.package(*l).values())))),
+ ("Number of packages",
+ len),
]))
purge_old_notes(notes)
purge_old_issues(issues)