From d4bcc0bfe31c49444746a372d74016486030f0f9 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 3 Dec 2016 16:51:47 +0100 Subject: reproducible debian: remote scheduler: de-duplicate the list later to keep the whole script functional otherwise the filter functions wouldn't work Signed-off-by: Holger Levsen --- bin/reproducible_remote_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_remote_scheduler.py') diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py index ff22e5c4..47c345c4 100755 --- a/bin/reproducible_remote_scheduler.py +++ b/bin/reproducible_remote_scheduler.py @@ -78,7 +78,7 @@ issue = scheduling_args.issue status = scheduling_args.status built_after = scheduling_args.after built_before = scheduling_args.before -packages = set(x for x in scheduling_args.packages if x) +packages = [x for x in scheduling_args.packages if x] artifacts = scheduling_args.keep_artifacts notify = scheduling_args.notify or scheduling_args.noisy notify_on_start = scheduling_args.noisy @@ -163,7 +163,7 @@ query1 = """SELECT id FROM sources WHERE name='{pkg}' AND suite='{suite}' query2 = """SELECT p.date_build_started FROM sources AS s JOIN schedule as p ON p.package_id=s.id WHERE p.package_id='{id}'""" -for pkg in packages: +for pkg in set(packages): # test whether the package actually exists result = query_db(query1.format(pkg=pkg, suite=suite, arch=arch)) # tests whether the package is already building -- cgit v1.2.3-70-g09d2