Fix change_permission

pull/2016/head
Ozzie Isaacs 3 years ago
parent 84e1c6e809
commit d9f86aecd2

@ -185,7 +185,7 @@ class Updater(threading.Thread):
def moveallfiles(cls, root_src_dir, root_dst_dir):
new_permissions = os.stat(root_dst_dir)
log.debug('Performing Update on OS-System: %s', sys.platform)
change_permissions = (sys.platform == "win32" or sys.platform == "darwin")
change_permissions = not (sys.platform == "win32" or sys.platform == "darwin")
for src_dir, __, files in os.walk(root_src_dir):
dst_dir = src_dir.replace(root_src_dir, root_dst_dir, 1)
if not os.path.exists(dst_dir):

Loading…
Cancel
Save