From 9d167a7eab79cde988949090912b523890dccacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 9 Dec 2010 08:27:51 +0100 Subject: [PATCH] offer also to supersed requests in review state (Bug #658479) --- osc/commandline.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 = ''