summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_notes.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-03-06 23:02:50 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-07 10:47:26 +0100
commit97ab048fb68fbc3aec66cc83947692a390e62e35 (patch)
treeee008cdf48247158eb75eeb58c46ce2b2dd035c6 /bin/reproducible_html_notes.py
parentbd701840d583dd96d190c25c34c46b1c9e0885df (diff)
downloadjenkins.debian.net-97ab048fb68fbc3aec66cc83947692a390e62e35.tar.xz
reproducible: notes: add a +/# sign after bug numbers, if they are close/with-patch
Diffstat (limited to 'bin/reproducible_html_notes.py')
-rwxr-xr-xbin/reproducible_html_notes.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 3fec2ddc..993d7842 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -188,7 +188,7 @@ def fill_issue_in_note(issue):
return note_issue_html.substitute(issue=issue, issue_info=html)
-def gen_html_note(note):
+def gen_html_note(package, note):
"""
Given a note as input (as a dict:
{"package_name": {"version": "0.0.0", "comments": "blablabla",
@@ -211,7 +211,8 @@ def gen_html_note(note):
bugurls = ''
for bug in note['bugs']:
bugurls += '<a href="https://bugs.debian.org/' + str(bug) + \
- '" target="_parent">' + str(bug) + '</a><br />'
+ '" target="_parent">' + str(bug) + '</a>' + \
+ get_trailing_bug_icon(bug, bugs, package) + '<br />'
infos += note_bugs_html.substitute(bugs=bugurls)
# check for comments:
if 'comments' in note:
@@ -292,7 +293,7 @@ def iterate_over_notes(notes):
note = notes[package]
note['package'] = package
log.debug('\t' + str(note))
- html = gen_html_note(note)
+ html = gen_html_note(package, note)
title = 'Notes for ' + package + ' - reproducible builds result'
destfile = NOTES_PATH + '/' + package + '_note.html'