1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-02 17:56:15 +01:00

- fix for my last commit

This commit is contained in:
Marcus Huewe 2011-01-17 19:33:02 +01:00
parent 78cf44a5bc
commit 955ee78e8b

View File

@ -5167,6 +5167,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else: else:
return '%s = \'%s\'' % (attr, what) return '%s = \'%s\'' % (attr, what)
search_term = ''
if len(args) > 1: if len(args) > 1:
raise oscerr.WrongArgs('Too many arguments') raise oscerr.WrongArgs('Too many arguments')
elif len(args) == 0: elif len(args) == 0:
@ -5174,6 +5175,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
search_term = conf.get_apiurl_usr(conf.config['apiurl']) search_term = conf.get_apiurl_usr(conf.config['apiurl'])
else: else:
raise oscerr.WrongArgs('Too few arguments') raise oscerr.WrongArgs('Too few arguments')
else:
search_term = args[0] search_term = args[0]
# support perl package names and symbols: # support perl package names and symbols: