1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:09:44 +00:00

more debug logs

This commit is contained in:
deadc0de6
2020-11-15 10:59:06 +01:00
parent a3c6abd32b
commit fbc669a66c

View File

@@ -523,7 +523,12 @@ def cmd_importer(o):
chmod = None
dflperm = get_default_file_perms(dst, o.umask)
if o.debug:
LOG.dbg('import mode: {}'.format(o.import_mode))
if o.import_mode or perm != dflperm:
if o.debug:
LOG.dbg('adopt mode {:o} (umask {:o})'.format(perm, dflperm))
# insert chmod
chmod = perm
retconf = o.conf.new(src, dst, linktype, chmod=chmod)