1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

- simplify

This commit is contained in:
Marcus Huewe 2010-02-08 23:31:27 +01:00
parent b773977410
commit 8b53dbbffd

View File

@ -1630,7 +1630,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
# python has no args.unshift ???
args = [ conf.config['getpac_default_project'] , args[0] ]
if not (len(args) >= 2 and len(args) <= 4):
if len(args) < 2 or len(args) > 4:
raise oscerr.WrongArgs('Wrong number of arguments.')
expected = 'home:%s:branches:%s' % (conf.config['user'], args[0])
if len(args) >= 3: