Commit e31df163 authored by Ozzieisaacs's avatar Ozzieisaacs

Revert bug in updater.py preventing new files from being created

parent d7ea5bb9
...@@ -168,8 +168,9 @@ class Updater(threading.Thread): ...@@ -168,8 +168,9 @@ class Updater(threading.Thread):
for file_ in files: for file_ in files:
src_file = os.path.join(src_dir, file_) src_file = os.path.join(src_dir, file_)
dst_file = os.path.join(dst_dir, file_) dst_file = os.path.join(dst_dir, file_)
permission = os.stat(dst_file)
if os.path.exists(dst_file): if os.path.exists(dst_file):
if change_permissions:
permission = os.stat(dst_file)
log.debug('Remove file before copy: %s', dst_file) log.debug('Remove file before copy: %s', dst_file)
os.remove(dst_file) os.remove(dst_file)
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment