1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

- fixed #470948 (osc build: be a bit more verbose if the linked package isn't expanded)

This commit is contained in:
Marcus Hüwe 2009-02-11 12:53:05 +00:00
parent 6dc5498015
commit 0dc31b96b7

View File

@ -1945,7 +1945,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if not arg_descr and len(descr) == 1:
arg_descr = descr[0]
elif not arg_descr:
raise oscerr.WrongArgs('Missing argument: build description (spec or dsc file)')
msg = 'Missing argument: build description (spec or dsc file)'
try:
p = Package('.')
if p.islink() and not p.isexpanded():
msg += ' (this package is not expanded - you might want to try osc up --expand)'
except:
pass
raise oscerr.WrongArgs(msg)
args = (arg_platform, arg_arch, arg_descr)