[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: fix pkg_has_buildinfo() to work with any arch

Holger Levsen holger at moszumanska.debian.org
Sun Sep 6 16:18:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit f3c889b11dda779a78ec2933e08582e5612e4dd0
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Sep 6 18:13:53 2015 +0200

    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 0f2d070..91e4ec1 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 81c0008..adfa5c6 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'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list