diff --git a/osc/core.py b/osc/core.py index 47330369..b1eb2f8f 100644 --- a/osc/core.py +++ b/osc/core.py @@ -5536,7 +5536,12 @@ def get_package_results(apiurl, project, package, wait=False, *args, **kwargs): elif result.get('code') in waiting_states: waiting = True break - + else: + pkg = result.find('status') + if pkg.get('code') in waiting_states: + waiting = True + break + if not wait or not waiting: break else: