mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 17:40:31 +00:00
Fix change_permission
This commit is contained in:
parent
84e1c6e809
commit
d9f86aecd2
@ -185,7 +185,7 @@ class Updater(threading.Thread):
|
|||||||
def moveallfiles(cls, root_src_dir, root_dst_dir):
|
def moveallfiles(cls, root_src_dir, root_dst_dir):
|
||||||
new_permissions = os.stat(root_dst_dir)
|
new_permissions = os.stat(root_dst_dir)
|
||||||
log.debug('Performing Update on OS-System: %s', sys.platform)
|
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):
|
for src_dir, __, files in os.walk(root_src_dir):
|
||||||
dst_dir = src_dir.replace(root_src_dir, root_dst_dir, 1)
|
dst_dir = src_dir.replace(root_src_dir, root_dst_dir, 1)
|
||||||
if not os.path.exists(dst_dir):
|
if not os.path.exists(dst_dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user