From 955ee78e8b663af8e4eb2b371615992fa69a2f58 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Mon, 17 Jan 2011 19:33:02 +0100 Subject: [PATCH] - fix for my last commit --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index a8bdeae4..9564b5a2 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5167,6 +5167,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. else: return '%s = \'%s\'' % (attr, what) + search_term = '' if len(args) > 1: raise oscerr.WrongArgs('Too many arguments') elif len(args) == 0: @@ -5174,7 +5175,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. search_term = conf.get_apiurl_usr(conf.config['apiurl']) else: raise oscerr.WrongArgs('Too few arguments') - search_term = args[0] + else: + search_term = args[0] # support perl package names and symbols: if re.match('^\w+(::\w+)+$', search_term):