mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
- simplify
This commit is contained in:
parent
b773977410
commit
8b53dbbffd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user