1
0
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:
Marcus Huewe 2010-07-30 14:02:23 +02:00
parent cb3691426c
commit 1b6fbd7d05

View File

@ -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: