mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- use get_actions method
This commit is contained in:
parent
8406cdd56d
commit
d5173cfc01
@ -1903,7 +1903,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
diff = request_diff(apiurl, reqid)
|
||||
except urllib2.HTTPError, e:
|
||||
# for OBS 2.0 and before
|
||||
sr_actions = [i for i in r.actions if i.type == 'submit']
|
||||
sr_actions = r.get_actions('submit')
|
||||
if not sr_actions:
|
||||
raise oscerr.WrongOptions('\'--diff\' not possible (request has no \'submit\' actions)')
|
||||
for action in sr_actions:
|
||||
|
@ -5921,7 +5921,7 @@ def request_interactive_review(apiurl, request):
|
||||
print_request(request)
|
||||
try:
|
||||
msg = '(a)ccept/(d)ecline/(r)evoke/(b)uildstatus/c(l)one/(s)kip/(c)ancel > '
|
||||
sr_actions = [i for i in request.actions if i.type == 'submit']
|
||||
sr_actions = request.get_actions('submit')
|
||||
if sr_actions:
|
||||
msg = 'd(i)ff/%s' % msg
|
||||
while True:
|
||||
|
Loading…
Reference in New Issue
Block a user