diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-08-07 16:48:16 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-07 18:51:20 +0200 |
commit | f1828f5393d6ed8f7bad0029257d31dd057944f1 (patch) | |
tree | 14b5c003429fea255e8cd1eb18e85527fd5a47e9 /bin/reproducible_html_dd_list.py | |
parent | 8ec646484c64a7b33c7e9d0e19d66d91c977a768 (diff) | |
download | jenkins.debian.net-f1828f5393d6ed8f7bad0029257d31dd057944f1.tar.xz |
reproducible: html_dd_list: add internal hyperlinks to singular maintainer
Diffstat (limited to 'bin/reproducible_html_dd_list.py')
-rwxr-xr-x | bin/reproducible_html_dd_list.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_html_dd_list.py b/bin/reproducible_html_dd_list.py index 873bb3da..a486d094 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 |