1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-24 22:06:14 +01:00

- fix waiting function of results

This commit is contained in:
Adrian Schröter 2012-06-21 11:08:43 +02:00
parent 6e34b410fa
commit e0a5b7052a

View File

@ -4834,7 +4834,7 @@ def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[], ve
continue
res['status'] = res['code']
if verbose and res['details'] != '':
if res['status'] in ('unresolvable', 'expansion error'):
if res['code'] in ('unresolvable', 'expansion error'):
lines = res['details'].split(',')
res['status'] += ': ' + '\n '.join(lines)
@ -4846,7 +4846,7 @@ def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[], ve
res['status'] = 'outdated (was: %s)' % res['status']
else:
res['status'] += '*'
if res['status'] in ('blocked', 'scheduled', 'dispatching', 'building', 'signing', 'finished'):
if res['code'] in ('blocked', 'scheduled', 'dispatching', 'building', 'signing', 'finished'):
waiting=True
r.append(result_line_templ % res)