mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- move check to the correct place (otherwise args[0] might lead to an IndexError exception)
This commit is contained in:
parent
2baad18f1f
commit
287d8c2fbd
@ -1017,10 +1017,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
"""
|
||||
|
||||
args = slash_split(args)
|
||||
if len(args) < 1:
|
||||
raise oscerr.WrongArgs('Missing argument.')
|
||||
prj = args[0]
|
||||
pkgs = args[1:]
|
||||
if not prj:
|
||||
raise oscerr.WrongArgs('Missing argument.')
|
||||
|
||||
if pkgs:
|
||||
for pkg in pkgs:
|
||||
|
Loading…
Reference in New Issue
Block a user