summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_notes.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-02-14 18:43:28 +0100
committerMattia Rizzolo <mattia@mapreri.org>2015-02-14 18:43:28 +0100
commitb7716c8830360b918e7c56fe1646b8368cc193fb (patch)
tree3de8bd796453fcaef76f58786c7c301615b7cfb4 /bin/reproducible_html_notes.py
parent00677a10769191f3ed05f6762fad84bebfee3111 (diff)
downloadjenkins.debian.net-b7716c8830360b918e7c56fe1646b8368cc193fb.tar.xz
reproducible: html_notes: print the actual number of categorized packages, not all noted packages
Diffstat (limited to 'bin/reproducible_html_notes.py')
-rwxr-xr-xbin/reproducible_html_notes.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 9841c19a..b75b0850 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -329,8 +329,10 @@ def index_issues(issues):
html += tab*4 + '</td>\n'
html += tab*3 + '</tr>\n'
html += tab*2 + '</table>\n'
- html += tab*2 + '<p>For a total of <b>' + str(len(notes)) + '</b> packages' \
- + ' categorized in <b>' + str(len(issues)) + '</b> issues.</p>'
+ html += tab*2 + '<p>For a total of <b>' + \
+ str(len([x for x in notes if notes[x].get('issues')])) + \
+ '</b> packages categorized in <b>' + str(len(issues)) + \
+ '</b> issues.</p>'
html += tab*2 + '<p>Notes are stored in <a href="https://anonscm.debian.org/cgit/reproducible/notes.git" target="_parent">notes.git</a>.</p>'
title = 'Overview of known issues related to reproducible builds'
destfile = BASE + '/index_issues.html'