1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01: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) res['status'] += ': ' + '\n '.join(lines)
else: else:
res['status'] += ': %s' % (res['details'], ) 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']: if res['dirty']:
waiting = True waiting = True
if verbose: if verbose:
res['status'] = 'outdated (was: %s)' % res['status'] res['status'] = 'outdated (was: %s)' % res['status']
else: else:
res['status'] += '*' 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'): if res['code'] in ('blocked', 'scheduled', 'dispatching', 'building', 'signing', 'finished'):
waiting = True waiting = True