From f4228de56b7c0b0cb3439dc77d7603fa88fa85e6 Mon Sep 17 00:00:00 2001 From: "Dr. Peter Poeml" Date: Wed, 11 Jun 2008 08:01:10 +0000 Subject: [PATCH] osc wipebinaries: add missing check for commandline arguments, which could cause a PACKAGE argument to be ignored --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 7589ab89..34dc8c7f 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1900,7 +1900,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. if len(args) < 1: raise oscerr.WrongArgs('Missing argument.') - + if len(args) > 2: + raise oscerr.WrongArgs('Wrong number of arguments.') + if len(args) == 2: package = args[1] else: