mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-24 19:22:13 +01:00
osc wipebinaries: add missing check for commandline arguments, which could
cause a PACKAGE argument to be ignored
This commit is contained in:
parent
da101858ee
commit
f4228de56b
@ -1900,7 +1900,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
if len(args) < 1:
|
||||
raise oscerr.WrongArgs('Missing <project> argument.')
|
||||
|
||||
if len(args) > 2:
|
||||
raise oscerr.WrongArgs('Wrong number of arguments.')
|
||||
|
||||
if len(args) == 2:
|
||||
package = args[1]
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user