summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-05-10 19:19:45 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-11 09:27:10 +0200
commit9450f4b92ef5fc62bd81749222b6bc91fdc82f77 (patch)
tree5ee9895e8d40da81cd89c26c63eb4102a886ec32
parent628faa31cbc18d7f147432ab7dadd26522c9b907 (diff)
downloadjenkins.debian.net-9450f4b92ef5fc62bd81749222b6bc91fdc82f77.tar.xz
reproducible: remote_scheduler: fix the --message option handling
-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 e010eb7d..3cb1f7d8 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -20,7 +20,7 @@ parser.add_argument('-a', '--artifacts', default=False, action='store_true',
help='Save artifacts (for further offline study)')
parser.add_argument('-s', '--suite', required=True,
help='Specify the suite to schedule in')
-parser.add_argument('-m', '--message', default='',
+parser.add_argument('-m', '--message', default='', nargs='+'
help='A text to be sent to the IRC channel when notifying' +
' about the scheduling')
parser.add_argument('packages', metavar='package', nargs='+',
@@ -50,7 +50,7 @@ except KeyError:
'trouble with that.' + bcolors.ENDC)
sys.exit(1)
suite = scheduling_args.suite
-reason = scheduling_args.message
+reason = ' '.join(scheduling_args.message)
packages = scheduling_args.packages
artifacts = scheduling_args.artifacts