From 8948a26ae44c43a74f1efded08734c124f6de3ba Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Fri, 9 Feb 2018 15:35:52 +0100 Subject: [PATCH] Fix --multibuild-package option handling in do_sendsysrq Concatenating a str and a list does not work. --- osc/commandline.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 40e57e32..c7ac5f6a 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -6903,10 +6903,11 @@ Please submit there instead, or use --nodevelproject to force direct submission. arch = args[3] sysrq = args[4] + packages = [package] if opts.multibuild_package: - package = package + ":" + opts.multibuild_package - - print(cmdbuild(apiurl, 'sendsysrq', project, package, arch, repo, None, sysrq)) + packages = ['%s:%s' % (package, flavor) for flavor in opts.multibuild_package] + for package in packages: + print(cmdbuild(apiurl, 'sendsysrq', project, package, arch, repo, None, sysrq)) @cmdln.option('-a', '--arch', metavar='ARCH', help='Restart builds for a specific architecture')