From f1828f5393d6ed8f7bad0029257d31dd057944f1 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 7 Aug 2015 16:48:16 +0000 Subject: reproducible: html_dd_list: add internal hyperlinks to singular maintainer --- bin/reproducible_html_dd_list.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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:

\n

'
         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 += ''.format(
+                    maint=email)
             html += '\n'
         html += '

' title = 'Maintainers of unreproducible packages in ' + suite -- cgit v1.2.3-54-g00ecf