From 1d51206a4fee82cb9515561ce556c69ed4d857c8 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 22 May 2017 15:25:00 +0000 Subject: reproducible Debian: Separate munging from aliasing. No functional change. Signed-off-by: Holger Levsen --- bin/reproducible_remote_scheduler.py | 8 ++++++-- 1 file changed, 6 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 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 -- cgit v1.2.3-54-g00ecf