From 0dc31b96b7f2317727e3e7fa0994f16fe9facf9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Wed, 11 Feb 2009 12:53:05 +0000 Subject: [PATCH] - fixed #470948 (osc build: be a bit more verbose if the linked package isn't expanded) --- osc/commandline.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 3cd72cd0..8d400dbc 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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)