summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_remote_scheduler.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2016-12-03 16:41:12 +0100
committerHolger Levsen <holger@layer-acht.org>2016-12-03 16:43:49 +0100
commitd9ee72c7ffe00c91bce29187d7395eff91a9c964 (patch)
treee71261baa390e99b150b5feca078b32653756e39 /bin/reproducible_remote_scheduler.py
parenta54c8a2cb9b0323747888b80161751f0aacf73e7 (diff)
downloadjenkins.debian.net-d9ee72c7ffe00c91bce29187d7395eff91a9c964.tar.xz
reproducible debian: remote scheduler: use a set() instead of a list to prevent duplicates
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_remote_scheduler.py')
-rwxr-xr-xbin/reproducible_remote_scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index aec225eb..ff22e5c4 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 = [x for x in scheduling_args.packages if x]
+packages = set(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