1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 17:16:12 +01:00

offer also to supersed requests in review state (Bug #658479)

This commit is contained in:
Adrian Schröter 2010-12-09 08:27:51 +01:00
parent 5af3ac58de
commit 9d167a7eab

View File

@ -964,8 +964,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
return return
# Are there already requests to this package ? # 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', ['new','review'])
reqs += get_request_list(apiurl, dst_project, dst_package, req_type='submit', req_state='review')
user = conf.get_apiurl_usr(apiurl) user = conf.get_apiurl_usr(apiurl)
myreqs = [ i for i in reqs if i.state.who == user ] myreqs = [ i for i in reqs if i.state.who == user ]
repl = '' repl = ''
@ -1166,7 +1165,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if opts.diff: if opts.diff:
run_pager(rdiff) run_pager(rdiff)
else: 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) user = conf.get_apiurl_usr(apiurl)
myreqs = [ i for i in reqs if i.state.who == user ] myreqs = [ i for i in reqs if i.state.who == user ]
repl = '' repl = ''