[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: html_dd_list: add internal hyperlinks to singular maintainer
Holger Levsen
holger at moszumanska.debian.org
Fri Aug 7 16:52:32 UTC 2015
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 f1828f5393d6ed8f7bad0029257d31dd057944f1
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Fri Aug 7 16:48:16 2015 +0000
reproducible: html_dd_list: add internal hyperlinks to singular maintainer
---
bin/reproducible_html_dd_list.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_html_dd_list.py b/bin/reproducible_html_dd_list.py
index 873bb3d..a486d09 100755
--- a/bin/reproducible_html_dd_list.py
+++ b/bin/reproducible_html_dd_list.py
@@ -51,6 +51,7 @@ for suite in SUITES:
html += 'for packages in ' + suite + ' which have built '
html += 'unreproducibly:</p>\n<p><pre>'
out = out.decode().splitlines()
+ get_mail = re.compile('<(.*)>')
for line in out:
if line[0:3] == ' ':
line = line.strip().split(None, 1)
@@ -61,8 +62,11 @@ for suite in SUITES:
html += ' ' + line[1] # eventual uploaders sign
except IndexError:
pass
- else:
+ elif line.strip(): # be sure this is not just an empty line
+ email = get_mail.findall(line.strip())[0]
html += HTML.escape(line.strip())
+ html += '<a name="{maint}" href="#{maint}">¶</a>'.format(
+ maint=email)
html += '\n'
html += '</pre></p>'
title = 'Maintainers of unreproducible packages in ' + suite
--
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