From d9f86aecd21de6ea4828cc1207959cfa70fe0220 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 5 Jun 2021 13:51:16 +0200 Subject: [PATCH] Fix change_permission --- cps/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/updater.py b/cps/updater.py index fb5219b6..dd81c839 100644 --- a/cps/updater.py +++ b/cps/updater.py @@ -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):