1
0
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:
Marcus Hüwe 2009-05-07 19:41:02 +00:00
parent 2baad18f1f
commit 287d8c2fbd

View File

@ -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: