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

rm: don't allow to mark files as deleted which are not under version control

This commit is contained in:
Dr. Peter Poeml 2007-06-29 12:02:35 +00:00
parent 6057f2c063
commit f54d26e61e

View File

@ -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: