mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +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:
|
elif not arg_descr:
|
||||||
msg = None
|
msg = None
|
||||||
if len(descr) > 1:
|
if len(descr) > 1:
|
||||||
spec = os.path.basename(os.getcwd())+'.spec'
|
msg = 'Multiple build description files found: %s' % ', '.join(descr)
|
||||||
if spec in descr:
|
|
||||||
arg_descr = spec
|
|
||||||
else:
|
|
||||||
msg = 'Multiple build description files found: %s' % ', '.join(descr)
|
|
||||||
else:
|
else:
|
||||||
msg = 'Missing argument: build description (spec, dsc or kiwi file)'
|
msg = 'Missing argument: build description (spec, dsc or kiwi file)'
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user