mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-12 02:04:04 +02:00
Removed bogus check in get_package_results (fixes #224)
The bogus check is twofold: the first error is due to a wrong
refactoring (repostate was intended to be the "code" attribute
and "code" was supposed to the "code" attribute of the status
node) (see commit f3a1d12a
). The second error is a logic error
in the original code, because the package state "succeeded" and
the repostate "unpublished" is a valid combination. Consequently,
the check didn't make any sense...
This commit is contained in:
@@ -5525,10 +5525,6 @@ def get_package_results(apiurl, project, package, wait=False, *args, **kwargs):
|
|||||||
elif result.get('code') in waiting_states:
|
elif result.get('code') in waiting_states:
|
||||||
waiting = True
|
waiting = True
|
||||||
break
|
break
|
||||||
elif (result.get('code') == 'succeeded'
|
|
||||||
and result.get('repostate') != 'published'):
|
|
||||||
waiting = True
|
|
||||||
break
|
|
||||||
|
|
||||||
if not wait or not waiting:
|
if not wait or not waiting:
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user