From 03480336a8402a09d8cafff8ebaa203f91bb6043 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 30 May 2015 02:34:04 +0200 Subject: reproducible: html_packages, breakages: use that pkg_has_rbuild function. Gain support for .gz rbuilds for free --- bin/reproducible_breakages.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bin/reproducible_breakages.py') diff --git a/bin/reproducible_breakages.py b/bin/reproducible_breakages.py index 37125cae..2f26eb37 100755 --- a/bin/reproducible_breakages.py +++ b/bin/reproducible_breakages.py @@ -75,10 +75,7 @@ def lack_rbuild(): ORDER BY s.name ASC, s.suite DESC''' results = query_db(query) for pkg, version, suite, arch in results: - eversion = strip_epoch(version) - rbuild = RBUILD_PATH + '/' + suite + '/' + arch + '/' + pkg + '_' + \ - eversion + '.rbuild.log' - if not os.access(rbuild, os.R_OK): + if not pkg_has_rbuild(pkg, version, suite, arch): bad_pkgs.append((pkg, version, suite, arch)) log.warning(pkg + '/' + suite + ' (' + version + ') has been ' 'built, but a buildlog is missing.') @@ -265,7 +262,8 @@ if __name__ == '__main__': bugs = get_bugs() html = '

This page lists unexpected things a human should look at and ' html += 'fix, like packages with an incoherent status or files that ' - html += 'should not be there.Please help making this page empty!

' + html += 'should not be there. ' + html += 'Please help making this page empty!

\n' breakages = gen_html() if breakages: html += breakages -- cgit v1.2.3-54-g00ecf