mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-29 03:06:15 +01:00
- fixed #462389 ("Ask for commit before creating a new submitreq")
This commit is contained in:
parent
9d97bcb56d
commit
7cd12cb501
@ -532,7 +532,12 @@ class Osc(cmdln.Cmdln):
|
|||||||
else:
|
else:
|
||||||
sys.exit('Package \'%s\' is not a source link, so I cannot guess the submit target.\n'
|
sys.exit('Package \'%s\' is not a source link, so I cannot guess the submit target.\n'
|
||||||
'Please provide it the target via commandline arguments.' % p.name)
|
'Please provide it the target via commandline arguments.' % p.name)
|
||||||
|
modified = [i for i in p.filenamelist if p.status(i) != ' ' and p.status(i) != '?']
|
||||||
|
if len(modified) > 0:
|
||||||
|
print 'Your working copy has local modifications.'
|
||||||
|
repl = raw_input('Proceed without committing the local changes? (y|N) ')
|
||||||
|
if repl != 'y':
|
||||||
|
sys.exit(1)
|
||||||
elif len(args) >= 3:
|
elif len(args) >= 3:
|
||||||
# get the arguments from the commandline
|
# get the arguments from the commandline
|
||||||
src_project, src_package, dst_project = args[0:3]
|
src_project, src_package, dst_project = args[0:3]
|
||||||
|
Loading…
Reference in New Issue
Block a user