1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 14:39:16 +00:00

Make is_template respect ignores

A (false positive) "template" that should be ignored
should not make `is_template` become true.
This commit is contained in:
Marcel Robitaille
2020-12-11 01:34:09 -05:00
parent 12c3c97aef
commit 071d74fb38
3 changed files with 29 additions and 9 deletions

View File

@@ -149,7 +149,8 @@ class Installer:
else:
r, err = self._link_children(templater, src, dst,
actionexec=actionexec,
is_template=is_template)
is_template=is_template,
ignore=ignore)
if self.debug:
self.log.dbg('before chmod: {} err:{}'.format(r, err))
@@ -268,7 +269,7 @@ class Installer:
return r, err
def _link_children(self, templater, src, dst,
actionexec=None, is_template=True):
actionexec=None, is_template=True, ignore=[]):
"""
install link:link_children
@@ -309,6 +310,13 @@ class Installer:
subsrc = srcs[i]
subdst = dsts[i]
if utils.must_ignore([subsrc, subdst], ignore, debug=self.debug):
if self.debug:
self.log.dbg(
'ignoring install of {} to {}'.format(src, dst),
)
continue
if self.debug:
self.log.dbg('symlink child {} to {}'.format(subsrc, subdst))