1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

- do_submitrequest: consider the "--yes" option if the wc has local modifications

This commit is contained in:
Marcus Huewe 2014-03-12 10:50:46 +01:00
parent 8c506e5929
commit c66a75018e

View File

@ -1142,7 +1142,7 @@ class Osc(cmdln.Cmdln):
'Please provide it the target via commandline arguments.' % p.name)
modified = [i for i in p.filenamelist if not p.status(i) in (' ', '?', 'S')]
if len(modified) > 0:
if len(modified) > 0 and not opts.yes:
print('Your working copy has local modifications.')
repl = raw_input('Proceed without committing the local changes? (y|N) ')
if repl != 'y':