summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-10-09 13:01:51 +0000
committerHolger Levsen <holger@layer-acht.org>2015-10-09 15:02:32 +0200
commitbd0e008b8a90f47f5fe5103afde634fef25a8b93 (patch)
treee7b332b44fa0ebe32f18f69bcc9b8c35d311ba8b /bin
parentec377219bf6ac78d155db06b0ebc3ad7fe5a5b60 (diff)
downloadjenkins.debian.net-bd0e008b8a90f47f5fe5103afde634fef25a8b93.tar.xz
reproducible: remote_scheduler: filter the architecture too
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_remote_scheduler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index e3682894..acdff98e 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -114,11 +114,12 @@ if arch not in ARCHS:
sys.exit(1)
if issue or status or built_after or built_before:
- formatter = dict(suite=suite, notes_table='')
+ formatter = dict(suite=suite, arch=arch, notes_table='')
log.info('Querying packages with given issues/status...')
query = 'SELECT s.name ' + \
'FROM sources AS s, {notes_table} results AS r ' + \
'WHERE r.package_id=s.id ' + \
+ 'AND s.architecture= "{arch}" ' + \
'AND s.suite = "{suite}" AND r.status != "blacklisted" '
if issue:
query += 'AND n.package_id=s.id AND n.issues LIKE "%{issue}%" '