From 094a2de2fc5fc7d18cb69a65aadfcf20f1f01c7b Mon Sep 17 00:00:00 2001
From: Mattia Rizzolo
Date: Fri, 16 Jan 2015 01:16:10 +0100
Subject: reproducible: add some infos for the user about the # and + signs
---
bin/reproducible_common.py | 8 +++++---
bin/reproducible_html_notes.py | 6 ++++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index f5acc4aa..95c10227 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -161,8 +161,11 @@ html_foot_page_style_note = Template((tab*2).join("""
A package name displayed with a bold font is an indication that this
package has a note. Visited packages are linked in green, those which
- have not been visited are linked in blue.
-""".splitlines(True)))
+ have not been visited are linked in blue.
+ A #
sign after the name of a package indicates that a bug is
+ filed aginst it. Likewise, a +
means that there is bug with a
+ patch attached. In case of more than one bug, the simble is repeated.
+
""".splitlines(True)))
url2html = re.compile(r'((mailto\:|((ht|f)tps?)\://|file\:///){1}\S+)')
@@ -183,7 +186,6 @@ def write_html_page(title, body, destfile, noheader=False, style_note=False, noe
html += body
if style_note:
html += html_foot_page_style_note.substitute()
- html += (tab*2) + '
'
if not noendpage:
html += html_footer.substitute(date=now)
else:
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index f85a9e30..8e90feb7 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -312,9 +312,11 @@ def get_trailing_icon(package, bugs):
for bug in bugs[package]:
html += '#'
+ html += 'bug-done" title="#' + str(bug) + ', done">#'
elif bugs[package][bug]['patch']:
- html += 'bug-patch">+'
+ html += 'bug-patch" title="#' + str(bug) + ', with patch">+'
+ else:
+ html += '" title="#' + str(bug) + '">+'
print(package + ' ' + html)
return html
--
cgit v1.2.3-70-g09d2