From f3c889b11dda779a78ec2933e08582e5612e4dd0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 6 Sep 2015 18:13:53 +0200 Subject: reproducible: fix pkg_has_buildinfo() to work with any arch --- bin/reproducible_common.py | 2 +- 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 += '
  • buildinfo
  • \n' -- cgit v1.2.3-70-g09d2