Skip to content

Commit

Permalink
Fix --multibuild-package option handling in do_sendsysrq
Browse files Browse the repository at this point in the history
Concatenating a str and a list does not work.
  • Loading branch information
marcus-h committed Feb 9, 2018
1 parent 7fc251d commit 8948a26
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -6903,10 +6903,11 @@ def do_sendsysrq(self, subcmd, opts, *args):
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')
Expand Down

0 comments on commit 8948a26

Please sign in to comment.