1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-04 00:29:19 +02:00

Add --watch for osc prjresults --xml

Like: osc results --watch
This commit is contained in:
2018-11-05 22:57:14 +01:00
committed by lethliel
parent 82a222fcb2
commit 429df0dc70
3 changed files with 26 additions and 3 deletions

View File

@@ -5777,7 +5777,7 @@ def get_results(apiurl, project, package, verbose=False, printJoin='', *args, **
return r
def get_package_results(apiurl, project, package, wait=False, *args, **kwargs):
def get_package_results(apiurl, project, package=None, wait=False, *args, **kwargs):
"""generator that returns a the package results as an xml structure"""
xml = ''
waiting_states = ('blocked', 'scheduled', 'dispatching', 'building',