diff --git a/osc/core.py b/osc/core.py index 5212543a..b50c70ce 100755 --- a/osc/core.py +++ b/osc/core.py @@ -2330,12 +2330,11 @@ def get_request_list(apiurl, project, package, req_who='', req_state=('new',), r matches = [] match = '' m = '' - if "all" in req_state: - req_state=('new', 'accepted', 'declined', 'revoked', 'rejected') - for state in req_state: - if len(m): m += '%20or%20' - m += 'state/@name=\'%s\'' % quote_plus(state) - if len(m): match += "(" + m + ")" + if not "all" in req_state: + for state in req_state: + if len(m): m += '%20or%20' + m += 'state/@name=\'%s\'' % quote_plus(state) + if len(m): match += "(" + m + ")" m = '' if req_who: if len(m): m += '%20and%20'