diff --git a/osc/core.py b/osc/core.py index b8b560c8..2149f734 100755 --- a/osc/core.py +++ b/osc/core.py @@ -2055,6 +2055,8 @@ def get_submit_request_list(apiurl, project, package, req_state=('new')): match = 'submit/target/@project=\'%s\'' % quote_plus(project) if package: match += '%20and%20' + 'submit/target/@package=\'%s\'' % quote_plus(package) + for state in req_state: + match += '%20and%20' + 'state/@name=\'%s\'' % quote_plus(state) u = makeurl(apiurl, ['search', 'request'], ['match=%s' % match]) f = http_GET(u)