From b506b617e2d6da952f3a22f1b7d1840fe269679d Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 17 Jun 2015 06:34:14 +0000 Subject: reproducible: html_packages: link the build2 and the diff --- bin/reproducible_html_packages.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 72b53f63..2279fc5e 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -111,13 +111,15 @@ def gen_status_link_icon(status, icon, suite, arch): def link_buildlogs(package, eversion, suite, arch): html = '' - path = suite + '/' + arch + '/' + package + '_' + eversion + '.build{}.log.gz' - log = LOGS_PATH + '/' + path - uri = LOGS_URI + '/' + path - if os.access(log.format('1'), os.R_OK): - html += 'log1\n' - if os.access(log.format('2'), os.R_OK): - html += '2\n' + log = suite + '/' + arch + '/' + package + '_' + eversion + '.build2.log.gz' + diff = suite + '/' + arch + '/' + package + '_' + eversion + '.diff.gz' + if os.access(LOGS_PATH+'/'+log, os.R_OK): + uri = LOGS_URI + '/' + log + size = sizeof_fmt(os.stat(LOGS_PATH+'/'+log).st_size) + html += 'build2 (' + size + ')\n' + if os.access(DIFFS_PATH+'/'+diff, os.R_OK): + uri = DIFFS_URI + '/' + diff + html += 'diff\n' return html -- cgit v1.2.3-70-g09d2