file must exist

This commit is contained in:
j 2016-01-13 10:49:26 +05:30
parent d72158d78f
commit 44cb61da96

View file

@ -143,6 +143,7 @@ def install(stop=True):
shutil.rmtree(module_old)
shutil.rmtree(new)
else:
if os.path.exists(module_tar):
os.unlink(module_tar)
return False
shutil.copy(os.path.join(settings.updates_path, 'release.json'), os.path.join(settings.config_path, 'release.json'))