1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

Respect repository and arch arguments in restartbuild

This commit is contained in:
Andreas Schwab 2016-12-17 01:06:18 +01:00
parent 1c03e32a57
commit c5a7d266fb

View File

@ -6573,7 +6573,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if not (opts.all or package or repo or arch): if not (opts.all or package or repo or arch):
raise oscerr.WrongOptions('No option has been provided. If you want to restart all packages of the entire project, use --all option.') raise oscerr.WrongOptions('No option has been provided. If you want to restart all packages of the entire project, use --all option.')
print(cmdbuild(apiurl, subcmd, project, package, opts.arch, opts.repo)) print(cmdbuild(apiurl, subcmd, project, package, arch, repo))
@cmdln.option('-a', '--arch', metavar='ARCH', @cmdln.option('-a', '--arch', metavar='ARCH',