From b43d67093b9b5ef7bf86f861116ed050a01fb103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 23 Feb 2009 14:59:10 +0000 Subject: [PATCH] fix error messages, kiwi files are also allowed as build description. --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 271ff613..6096c58d 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1946,10 +1946,12 @@ Please submit there instead, or use --nodevelproject to force direct submission. arg_arch = arg_arch or osc.build.hostarch arg_platform = arg_platform or conf.config['build_platform'] descr = [ i for i in os.listdir('.') if i.endswith('.spec') or i.endswith('.dsc') ] + # FIXME: + # * request repos from server and select by build type. if not arg_descr and len(descr) == 1: arg_descr = descr[0] elif not arg_descr: - msg = 'Missing argument: build description (spec or dsc file)' + msg = 'Missing argument: build description (spec, dsc or kiwi file)' try: p = Package('.') if p.islink() and not p.isexpanded():