[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible debian: notes: show the bug title near the bug number

Holger Levsen holger at layer-acht.org
Sat Jun 18 13:59:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 6d639876f736e7937d4ee60ad9466be9af3d3fa5
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sat Jun 18 13:58:03 2016 +0000

    reproducible debian: notes: show the bug title near the bug number
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_html_notes.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index 94a6814..be0eb19 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -234,9 +234,14 @@ def gen_html_note(package, note):
     if 'bugs' in note:
         bugurls = ''
         for bug in note['bugs']:
+            try:
+                bug_title = ': "%s"' % bugs[package][bug]['title']
+            except KeyError:
+                bug_title = ''
             bugurls += '<a href="https://bugs.debian.org/' + str(bug) + \
                        '" target="_parent">' + str(bug) + '</a>' + \
-                       get_trailing_bug_icon(bug, bugs, package) + '<br />'
+                       get_trailing_bug_icon(bug, bugs, package) + \
+                       bug_title + '<br />'
         infos += note_bugs_html.substitute(bugs=bugurls)
     # check for comments:
     if 'comments' in note:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list