1
0
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:
Dr. Peter Poeml 2008-06-11 08:01:10 +00:00
parent da101858ee
commit f4228de56b

View File

@ -1900,6 +1900,8 @@ 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]