summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.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_common.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_common.py')
-rwxr-xr-xbin/reproducible_common.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 554e95ed..7dc0e21b 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -446,6 +446,25 @@ def get_trailing_icon(package, bugs):
return html
+def get_trailing_bug_icon(bug, bugs, package=None):
+ html = ''
+ if not package:
+ for pkg in bugs.keys():
+ if get_trailing_bug_icon(bug, bugs, pkg):
+ return get_trailing_bug_icon(bug, bugs, pkg)
+ else:
+ try:
+ if bug in bugs[package].keys():
+ html += '<span class="'
+ if bugs[package][bug]['done']:
+ html += 'bug-done" title="#' + str(bug) + ', done">#'
+ elif bugs[package][bug]['patch']:
+ html += 'bug-patch" title="#' + str(bug) + ', with patch">+'
+ html += '</span>'
+ except KeyError:
+ pass
+ return html
+
# init the databases connections
conn_db = start_db_connection() # the local sqlite3 reproducible db
conn_udd = start_udd_connection()