From 808a8eb28c202adf55b7b9c1faa15dd5b8b1613b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 30 Aug 2015 14:07:14 +0200 Subject: reproducible: refactor --- bin/reproducible_html_packages.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_html_packages.py') diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index dd865534..60bf0a31 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -181,6 +181,10 @@ def gen_suites_links(package, current_suite, current_arch): continue version = package.get_tested_version(s, a) build_date = package.get_build_date(s, a) + if build_date: + build_date = ' on ' + build_date + else: + build_date = '' li_classes = ['suite'] if s == current_suite and a == current_arch: li_classes.append('active') @@ -194,7 +198,7 @@ def gen_suites_links(package, current_suite, current_arch): icon = prefix + '{status}' + suffix html += icon.format(icon=join_status_icon(status)[1], status=status) html += (tab*2 + ' {}: {}\n').format(RB_PKG_URI, + ' title="{}: {}{}">{}: {}\n').format(RB_PKG_URI, s, a, package.name, status, version, build_date, s, version) html += '\n' html += tab + '' @@ -217,6 +221,10 @@ def gen_packages_html(packages, no_clean=False): status = package.get_status(suite, arch) version = package.get_tested_version(suite, arch) build_date = package.get_build_date(suite, arch) + if build_date: + build_date = 'at ' + build_date + else: + build_date = 'UNTESTED' if status == False: # the package is not in the checked suite continue log.debug('Generating the page of %s/%s/%s @ %s built at %s', -- cgit v1.2.3-70-g09d2