mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
rm: don't allow to mark files as deleted which are not under version control
This commit is contained in:
parent
6057f2c063
commit
f54d26e61e
@ -791,6 +791,8 @@ class Osc(cmdln.Cmdln):
|
||||
for p in pacs:
|
||||
|
||||
for filename in p.todo:
|
||||
if filename not in p.filenamelist:
|
||||
sys.exit('\'%s\' is not under version control' % filename)
|
||||
p.put_on_deletelist(filename)
|
||||
p.write_deletelist()
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user