1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-25 22:36:13 +01:00

- support "osc rq co <id>" also for action type "maintenance_release"

This commit is contained in:
Marcus Huewe 2012-05-04 17:18:46 +02:00
parent 60ed892beb
commit e4090f7932

View File

@ -2102,7 +2102,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
# checkout # checkout
elif cmd == 'checkout' or cmd == 'co': elif cmd == 'checkout' or cmd == 'co':
r = get_request(apiurl, reqid) r = get_request(apiurl, reqid)
sr_actions = r.get_actions('submit') sr_actions = r.get_actions('submit', 'maintenance_release')
if not sr_actions: if not sr_actions:
raise oscerr.WrongArgs('\'checkout\' not possible (request has no \'submit\' actions)') raise oscerr.WrongArgs('\'checkout\' not possible (request has no \'submit\' actions)')
for action in sr_actions: for action in sr_actions: