[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: display correct up2date version for blacklisted packages

Holger Levsen holger at moszumanska.debian.org
Sun Aug 30 13:15:00 UTC 2015


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

holger pushed a commit to branch h01ger/fix_version_for_blacklisted_packages
in repository jenkins.debian.net.

commit 35210b769804c0c3a5ac252575d48bba4abab509
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Aug 30 15:14:24 2015 +0200

    reproducible: display correct up2date version for blacklisted packages
---
 bin/reproducible_common.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 31ad733..020336d 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -673,7 +673,16 @@ class Build:
             except IndexError:  # there is no package with this name in this
                 return          # suite/arch, or none at all
         self.status = str(result[0])
-        self.version = str(result[1])
+        if self.status != 'blacklisted':
+            self.version = str(result[1])
+        else
+            query = 'SELECT version FROM sources WHERE name="{}" ' + \
+                    'AND suite="{}" AND architecture="{}"'
+            query = query.format(self.package, self.suite, self.arch)
+            try:
+                self.version = query_db(query)[0][0]
+            except IndexError:      # there is no package with this name in this
+                self.version = ''   # suite/arch, or none at all
         if result[2]:
             self.build_date = str(result[2]) + ' UTC'
 

-- 
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