1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-05 02:56:17 +01:00

- use correct states

This commit is contained in:
Marcus Huewe 2010-02-19 13:46:29 +01:00
parent a8d8565442
commit 80b349cb47

View File

@ -4643,7 +4643,7 @@ def request_interactive_review(apiurl, request):
print >>sys.stderr, 'Aborting' print >>sys.stderr, 'Aborting'
sys.exit(1) sys.exit(1)
else: else:
state_map = {'a': 'accepted', 'd': 'decline', 'r': 'revoke'} state_map = {'a': 'accepted', 'd': 'declined', 'r': 'revoked'}
mo = re.search('^([adr])(?:\s+-m\s+(.*))?$', repl) mo = re.search('^([adr])(?:\s+-m\s+(.*))?$', repl)
if mo is None: if mo is None:
raise oscerr.WrongOptions('invalid choice: \'%s\'' % repl) raise oscerr.WrongOptions('invalid choice: \'%s\'' % repl)