summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2016-12-03 16:51:47 +0100
committerHolger Levsen <holger@layer-acht.org>2016-12-03 17:03:05 +0100
commitd4bcc0bfe31c49444746a372d74016486030f0f9 (patch)
treee5ca665753297c79a7be9d74078bee921135e6bc
parentd9ee72c7ffe00c91bce29187d7395eff91a9c964 (diff)
downloadjenkins.debian.net-d4bcc0bfe31c49444746a372d74016486030f0f9.tar.xz
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 <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_remote_scheduler.py4
1 files changed, 2 insertions, 2 deletions
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