From e0a5b7052a40e7bd51b726b1676de6919793a510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 21 Jun 2012 11:08:43 +0200 Subject: [PATCH] - fix waiting function of results --- osc/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/core.py b/osc/core.py index 4c8f6302..d5be869b 100644 --- a/osc/core.py +++ b/osc/core.py @@ -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)