summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2017-05-22 15:25:00 +0000
committerHolger Levsen <holger@layer-acht.org>2017-05-22 18:25:51 +0200
commit1d51206a4fee82cb9515561ce556c69ed4d857c8 (patch)
treed2e9b20064464f370aefac6a2998441a9db6e783
parentfcc7eddebc29220af97c65cdd523ba1f0893b264 (diff)
downloadjenkins.debian.net-1d51206a4fee82cb9515561ce556c69ed4d857c8.tar.xz
reproducible Debian: Separate munging from aliasing. No functional change.
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_remote_scheduler.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index 47794bff..bc0bb0cc 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -52,6 +52,9 @@ def main():
scheduling_args = parser.parse_known_args()[0]
if scheduling_args.null:
scheduling_args = parser.parse_known_args(sys.stdin.read().split('\0'))[0]
+ scheduling_args.packages = [x for x in scheduling_args.packages if x]
+ if scheduling_args.noisy:
+ scheduling_args.notify = True
# these are here as an hack to be able to parse the command line
from reproducible_common import *
@@ -72,6 +75,7 @@ def main():
except KeyError:
local = False
+ # Shorter names
suite = scheduling_args.suite
arch = scheduling_args.architecture
reason = scheduling_args.message
@@ -79,9 +83,9 @@ def main():
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 = scheduling_args.packages
artifacts = scheduling_args.keep_artifacts
- notify = scheduling_args.notify or scheduling_args.noisy
+ notify = scheduling_args.notify
notify_on_start = scheduling_args.noisy
dry_run = scheduling_args.dry_run