diff --git a/osc/commandline.py b/osc/commandline.py index 6b2ab3da..8b1b539f 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -964,8 +964,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. return # Are there already requests to this package ? - reqs = get_request_list(apiurl, dst_project, dst_package, req_type='submit', req_state='new') - reqs += get_request_list(apiurl, dst_project, dst_package, req_type='submit', req_state='review') + reqs = get_request_list(apiurl, dst_project, dst_package, req_type='submit', ['new','review']) user = conf.get_apiurl_usr(apiurl) myreqs = [ i for i in reqs if i.state.who == user ] repl = '' @@ -1166,7 +1165,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. if opts.diff: run_pager(rdiff) else: - reqs = get_request_list(apiurl, dst_project, dst_package, req_type='submit') + reqs = get_request_list(apiurl, dst_project, dst_package, req_type='submit', ['new','review']) user = conf.get_apiurl_usr(apiurl) myreqs = [ i for i in reqs if i.state.who == user ] repl = ''