1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 11:03:31 +00:00

add more logs

This commit is contained in:
deadc0de6
2020-11-15 17:49:57 +01:00
parent aa5bbb6089
commit 87f32478d9
4 changed files with 24 additions and 8 deletions

View File

@@ -180,9 +180,11 @@ class Updater:
return False
def _mirror_rights(self, src, dst):
srcr = get_file_perm(src)
dstr = get_file_perm(dst)
if srcr == dstr:
return
if self.debug:
srcr = get_file_perm(src)
dstr = get_file_perm(dst)
msg = 'copy rights from {} ({:o}) to {} ({:o})'
self.log.dbg(msg.format(src, srcr, dst, dstr))
try: