summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_live_status.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-11 15:49:34 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-11 15:49:34 +0200
commit8758d820d6ee4b668f70210ec594b90ba58ab075 (patch)
treead530c2382acf7825b43f3004e0fe022e357f056 /bin/reproducible_html_live_status.py
parent5dfbba01b1150dd7e1ebd72610943cad4a63c7cf (diff)
downloadjenkins.debian.net-8758d820d6ee4b668f70210ec594b90ba58ab075.tar.xz
reproducible: include bug stati into live_status
Diffstat (limited to 'bin/reproducible_html_live_status.py')
-rwxr-xr-xbin/reproducible_html_live_status.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_html_live_status.py b/bin/reproducible_html_live_status.py
index 96d6eb2a..efb3c13f 100755
--- a/bin/reproducible_html_live_status.py
+++ b/bin/reproducible_html_live_status.py
@@ -24,7 +24,7 @@ def convert_into_hms_string(duration):
elif minutes > 0:
duration = str(minutes)+'m ' + str(seconds) + 's'
else:
- duration = str(seconds+"s")
+ duration = str(seconds)+'s'
return duration
def generate_schedule(arch):
@@ -42,17 +42,18 @@ def generate_schedule(arch):
html += '<p><table class="scheduled">\n' + tab
html += '<tr><th>#</th><th>scheduled at</th><th>suite</th>'
html += '<th>arch</th><th>source package</th></tr>\n'
+ bugs = get_bugs()
for row in rows:
# 0: date_scheduled, 1: suite, 2: arch, 3: pkg name
pkg = row[3]
html += tab + '<tr><td>&nbsp;</td><td>' + row[0] + '</td>'
html += '<td>' + row[1] + '</td><td>' + row[2] + '</td><td><code>'
- html += link_package(pkg, row[1], row[2])
+ html += link_package(pkg, row[1], row[2], bugs)
html += '</code></td></tr>\n'
html += '</table></p>\n'
destfile = BASE + '/index_' + arch + '_scheduled.html'
desturl = REPRODUCIBLE_URL + '/index_' + arch + '_scheduled.html'
- write_html_page(title=title, body=html, destfile=destfile, arch=arch, refresh_every=60)
+ write_html_page(title=title, body=html, destfile=destfile, arch=arch, style_note=True, refresh_every=60)
log.info("Page generated at " + desturl)