From 615c49b3e21759e34f9873c4925557496ad087bb Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 17 Mar 2015 01:48:46 +0100 Subject: reproducible: include suite/version in all package pages --- bin/reproducible_html_packages.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bin/reproducible_html_packages.py') diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 3c327fd1..227a1067 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -15,7 +15,7 @@ html_package_page = Template((tab*2).join(("""
- $package $version + $package $suite: $version $status $build_time: $links @@ -151,7 +151,7 @@ def gen_extra_links(package, version, suite, arch): def gen_suites_links(package, suite): html = '' - query = 'SELECT s.suite, s.architecture, r.status ' + \ + query = 'SELECT s.suite, s.architecture, s.version, r.status ' + \ 'FROM sources AS s LEFT JOIN results AS r ON r.package_id=s.id ' + \ 'WHERE s.name="{pkg}"'.format(pkg=package) results = query_db(query) @@ -161,14 +161,14 @@ def gen_suites_links(package, suite): if len(results) == 1: return html for i in results: - # i[0]: suite, i[1]: arch, i[2]: status (NULL if untested) + # i[0]: suite, i[1]: arch, i[3]: status (NULL if untested) if i[0] == suite: continue - status = 'untested' if not i[2] else i[2] + status = 'untested' if not i[3] else i[3] icon = '{status}\n' html += icon.format(icon=join_status_icon(status)[1], status=status) html += '' + i[0] + ' ' + str(package) + '.html" target="_parent">' + i[0] + ':' + i[2] + ' ' return tab*5 + (tab*7).join(html.splitlines(True)) @@ -203,6 +203,7 @@ def gen_packages_html(packages, suite=None, arch=None, no_clean=False, nocheck=F status = gen_status_link_icon(status, icon, suite, arch) html = html_package_page.substitute(package=pkg, + suite=suite, status=status, version=version, build_time=build_date, -- cgit v1.2.3-70-g09d2