mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 18:26:15 +01:00
implement a submitreq 'accept' action, resulting in the respective state change
This commit is contained in:
parent
8fc20cfc74
commit
241f528dc4
@ -456,7 +456,9 @@ class Osc(cmdln.Cmdln):
|
||||
|
||||
# accept
|
||||
elif cmd == 'accept':
|
||||
print 'not implemented yet.'
|
||||
r = change_submit_request_state(conf.config['apiurl'],
|
||||
reqid, 'accepted', opts.message or '')
|
||||
print r
|
||||
|
||||
|
||||
# editmeta and its aliases are all depracated
|
||||
|
@ -1772,7 +1772,7 @@ def get_submit_request_list(apiurl, project, package):
|
||||
for root in collection.findall('request'):
|
||||
r = SubmitReq()
|
||||
r.read(root)
|
||||
if r.state.name not in ['declined', 'deleted']:
|
||||
if r.state.name not in ['accepted', 'declined', 'deleted']:
|
||||
requests.append(r)
|
||||
|
||||
return requests
|
||||
|
Loading…
Reference in New Issue
Block a user