1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-06 15:43:39 +02:00

Merge branch 'fix_newline_in_verbose' of https://github.com/lethliel/osc

Print each unresolvable on a separate line.
This commit is contained in:
Marcus Huewe
2018-05-03 09:57:02 +02:00

View File

@@ -5704,7 +5704,7 @@ def get_results(apiurl, project, package, verbose=False, printJoin='', *args, **
if verbose and res['details'] != '':
if res['code'] in ('unresolvable', 'expansion error'):
lines = res['details'].split(',')
res['status'] += ': ' + '\n '.join(lines)
res['status'] += ': \n ' + '\n '.join(lines)
else:
res['status'] += ': %s' % res['details']
elif res['code'] in ('scheduled', ) and res['details']: