mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46:13 +01:00
- don't use spec by default if multiple build description files are found
otherwise it'll lead to unexpected behaviour if the repository is for instance debian
This commit is contained in:
parent
cb3691426c
commit
1b6fbd7d05
@ -3888,11 +3888,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
elif not arg_descr:
|
||||
msg = None
|
||||
if len(descr) > 1:
|
||||
spec = os.path.basename(os.getcwd())+'.spec'
|
||||
if spec in descr:
|
||||
arg_descr = spec
|
||||
else:
|
||||
msg = 'Multiple build description files found: %s' % ', '.join(descr)
|
||||
msg = 'Multiple build description files found: %s' % ', '.join(descr)
|
||||
else:
|
||||
msg = 'Missing argument: build description (spec, dsc or kiwi file)'
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user