From bd0e008b8a90f47f5fe5103afde634fef25a8b93 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 9 Oct 2015 13:01:51 +0000 Subject: reproducible: remote_scheduler: filter the architecture too --- bin/reproducible_remote_scheduler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_remote_scheduler.py') 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}%" ' -- cgit v1.2.3-54-g00ecf