mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-12 00:46:14 +01:00
- core.edit_message: use a more informative messsage if the default template wasn't changed
This commit is contained in:
parent
6d7de62755
commit
ec595d361b
@ -3486,7 +3486,7 @@ def edit_message(footer='', template='', templatelen=30):
|
|||||||
else:
|
else:
|
||||||
reason = 'Log message not specified'
|
reason = 'Log message not specified'
|
||||||
if template and template == msg:
|
if template and template == msg:
|
||||||
reason = 'Log template was not changed'
|
reason = 'Default log message was not changed. Press \'c\' to continue.'
|
||||||
ri = raw_input('%s\na)bort, c)ontinue, e)dit: ' % reason)
|
ri = raw_input('%s\na)bort, c)ontinue, e)dit: ' % reason)
|
||||||
if ri in 'aA':
|
if ri in 'aA':
|
||||||
raise oscerr.UserAbort()
|
raise oscerr.UserAbort()
|
||||||
|
Loading…
Reference in New Issue
Block a user