mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-13 14:05:06 +01:00
- strip at the correct place...
This commit is contained in:
parent
77efad5eb8
commit
322a385f7a
@ -5092,7 +5092,7 @@ def request_interactive_review(apiurl, request):
|
|||||||
if request.actions[0].type == 'submit':
|
if request.actions[0].type == 'submit':
|
||||||
msg = 'd(i)ff/%s' % msg
|
msg = 'd(i)ff/%s' % msg
|
||||||
while True:
|
while True:
|
||||||
repl = raw_input(msg)
|
repl = raw_input(msg).strip()
|
||||||
if repl == 'i' and request.actions[0].type == 'submit':
|
if repl == 'i' and request.actions[0].type == 'submit':
|
||||||
if tmpfile is None:
|
if tmpfile is None:
|
||||||
tmpfile = tempfile.NamedTemporaryFile()
|
tmpfile = tempfile.NamedTemporaryFile()
|
||||||
@ -5113,7 +5113,7 @@ def request_interactive_review(apiurl, request):
|
|||||||
raise oscerr.UserAbort()
|
raise oscerr.UserAbort()
|
||||||
else:
|
else:
|
||||||
state_map = {'a': 'accepted', 'd': 'declined', 'r': 'revoked'}
|
state_map = {'a': 'accepted', 'd': 'declined', 'r': 'revoked'}
|
||||||
mo = re.search('^([adr])(?:\s+-m\s+(.*))?$', repl.strip())
|
mo = re.search('^([adr])(?:\s+-m\s+(.*))?$', repl)
|
||||||
if mo is None:
|
if mo is None:
|
||||||
print >>sys.stderr, 'invalid choice: \'%s\'' % repl
|
print >>sys.stderr, 'invalid choice: \'%s\'' % repl
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user