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

- do not show unpublished information in dirty situation

This commit is contained in:
Adrian Schröter 2013-06-13 16:42:25 +02:00
parent da8c123d85
commit 467757b76d

View File

@ -4969,18 +4969,18 @@ def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[], ve
res['status'] += ': ' + '\n '.join(lines)
else:
res['status'] += ': %s' % (res['details'], )
if res['code'] in ('succeeded') and res['repostate'] != "published":
waiting = True
if verbose:
res['status'] += '(unpublished)'
else:
res['status'] += '*'
if res['dirty']:
waiting = True
if verbose:
res['status'] = 'outdated (was: %s)' % res['status']
else:
res['status'] += '*'
elif res['code'] in ('succeeded') and res['repostate'] != "published":
waiting = True
if verbose:
res['status'] += '(unpublished)'
else:
res['status'] += '*'
if res['code'] in ('blocked', 'scheduled', 'dispatching', 'building', 'signing', 'finished'):
waiting = True