summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_common.py16
-rwxr-xr-xbin/reproducible_html_notes.py12
2 files changed, 16 insertions, 12 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 7969d593..d26574ad 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -373,6 +373,22 @@ def get_bugs():
log.error('item: ' + str(bug))
return packages
+def get_trailing_icon(package, bugs):
+ html = ''
+ if package in bugs:
+ for bug in bugs[package]:
+ html += '<span class="'
+ if bugs[package][bug]['done']:
+ html += 'bug-done" title="#' + str(bug) + ', done">#</span>'
+ elif bugs[package][bug]['patch']:
+ html += 'bug-patch" title="#' + str(bug) + ', with patch">+</span>'
+ else:
+ html += '" title="#' + str(bug) + '">+</span>'
+ if html:
+ print(html)
+ return html
+
+
# init the databases connections
conn_db = start_db_connection() # the local sqlite3 reproducible db
conn_udd = start_udd_connection()
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py
index fe998748..6a130353 100755
--- a/bin/reproducible_html_notes.py
+++ b/bin/reproducible_html_notes.py
@@ -340,18 +340,6 @@ def index_issues(issues):
write_html_page(title=title, body=html, destfile=destfile)
log.info('Issues index now available at ' + desturl)
-def get_trailing_icon(package, bugs):
- html = ''
- if package in bugs:
- for bug in bugs[package]:
- html += '<span class="'
- if bugs[package][bug]['done']:
- html += 'bug-done" title="#' + str(bug) + ', done">#</span>'
- elif bugs[package][bug]['patch']:
- html += 'bug-patch" title="#' + str(bug) + ', with patch">+</span>'
- else:
- html += '" title="#' + str(bug) + '">+</span>'
- return html
def index_notes(notes, bugs):
log.debug('Building the index_notes page...')