mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-05 20:58:42 +02:00
osc wipebinaries: add missing check for commandline arguments, which could
cause a PACKAGE argument to be ignored
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user