mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 10:46:15 +01:00
fix error messages, kiwi files are also allowed as build description.
This commit is contained in:
parent
3cc1a12e60
commit
b43d67093b
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user