From 20906b693faf91f88f62828fd9a31289b8047078 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 19 Mar 2015 00:10:06 +0100 Subject: reproducible: html_packages: add some to help the browser decide where to wrap the line, avoiding uglinesses like this word --- bin/reproducible_html_packages.py | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 60dbed2e..9f4d2c79 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -15,16 +15,20 @@ html_package_page = Template((tab*2).join(("""
- $package $suite: $version + + $package $suite: $version $status - $build_time: + $build_time: + + $links - PTS - BTS - sources - debian/{changelog,rules} + PTS + BTS + sources + debian/{changelog,rules} + ${suites_links} @@ -161,14 +165,17 @@ def gen_suites_links(package, suite): if len(results) == 1: return html for i in results: - # i[0]: suite, i[1]: arch, i[3]: status (NULL if untested) + # i[0]: suite, i[1]: arch, i[2]: version, i[3]: status (NULL if untested) if i[0] == suite: continue status = 'untested' if not i[3] else i[3] + html += '\n' + tab icon = '{status}\n' html += icon.format(icon=join_status_icon(status)[1], status=status) - html += '' + i[0] + ':' + i[2] + ' ' + html += tab + '' + i[0] + \ + ':' + i[2] + '\n' + html += '\n' return tab*5 + (tab*7).join(html.splitlines(True)) -- cgit v1.2.3-54-g00ecf