1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

cosmetic + logic fix in get_results

This commit is contained in:
Marcus Huewe 2016-06-10 14:41:35 +02:00
parent ca9da9df05
commit 89fd90ee23

View File

@ -5482,13 +5482,13 @@ def get_results(apiurl, project, package, verbose=False, printJoin='', *args, **
lines = res['details'].split(',')
res['status'] += ': ' + '\n '.join(lines)
else:
res['status'] += ': %s' % (res['details'], )
res['status'] += ': %s' % res['details']
if res['dirty']:
if verbose:
res['status'] = 'outdated (was: %s)' % res['status']
else:
res['status'] += '*'
elif res['code'] in ('succeeded') and res['repostate'] != "published":
elif res['code'] in ('succeeded', ) and res['repostate'] != "published":
if verbose:
res['status'] += '(unpublished)'
else: