diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-06 18:13:53 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-06 18:13:53 +0200 |
commit | f3c889b11dda779a78ec2933e08582e5612e4dd0 (patch) | |
tree | 699012a4f8cb819ca6f4dfa46639feb384620173 | |
parent | d6539c17e204efb7cc27de5006e0896483d1d79c (diff) | |
download | jenkins.debian.net-f3c889b11dda779a78ec2933e08582e5612e4dd0.tar.xz |
reproducible: fix pkg_has_buildinfo() to work with any arch
-rwxr-xr-x | bin/reproducible_common.py | 2 | ||||
-rwxr-xr-x | bin/reproducible_html_packages.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index 0f2d070a..91e4ec1d 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -467,7 +467,7 @@ def pkg_has_buildinfo(package, version=False, suite=defaultsuite, arch=defaultar query = query.format(package, suite, arch) version = str(query_db(query)[0][0]) buildinfo = BUILDINFO_PATH + '/' + suite + '/' + arch + '/' + package + \ - '_' + strip_epoch(version) + '_amd64.buildinfo' + '_' + strip_epoch(version) + '_' + arch + '.buildinfo' if os.access(buildinfo, os.R_OK): return True else: diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 81c00089..adfa5c6b 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -144,7 +144,7 @@ def gen_extra_links(package, version, suite, arch, status): links += dbd[0] if dbd[0] else '' if dbd[0] and not default_view: default_view = dbd[1] - if pkg_has_buildinfo(package, version, suite): + if pkg_has_buildinfo(package, version, suite, arch): url = BUILDINFO_URI + '/' + suite + '/' + arch + '/' + package + \ '_' + eversion + '_' + arch + '.buildinfo' links += '<li><a href="' + url + '" target="main">buildinfo</a></li>\n' |