1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-24 03:02:12 +01:00

Merge pull request #1034 from andreas-schwab/master

Fix check for empty details
This commit is contained in:
Daniel Mach 2022-06-02 13:31:00 +02:00 committed by GitHub
commit 0a1d47d920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5972,7 +5972,7 @@ def get_results(apiurl, project, package, verbose=False, printJoin='', *args, **
if len(l) != 2 or l[1] not in multibuild_packages: if len(l) != 2 or l[1] not in multibuild_packages:
continue continue
res['status'] = res['code'] res['status'] = res['code']
if verbose and res['details'] != '': if verbose and res['details'] is not None:
if res['code'] in ('unresolvable', 'expansion error'): if res['code'] in ('unresolvable', 'expansion error'):
lines = res['details'].split(',') lines = res['details'].split(',')
res['status'] += ': \n ' + '\n '.join(lines) res['status'] += ': \n ' + '\n '.join(lines)