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

prefixes for ignore

This commit is contained in:
deadc0de6
2023-07-30 23:05:51 +02:00
committed by deadc0de
parent edc81054bf
commit f68df031fc
2 changed files with 5 additions and 3 deletions

View File

@@ -138,7 +138,8 @@ def _dotfile_compare(opts, dotfile, tmp):
return True
ignores = list(set(opts.compare_ignore + dotfile.cmpignore))
ignores = ignores_to_absolute(ignores, dotfile.dst, debug=opts.debug)
ignores = ignores_to_absolute(ignores, [dotfile.dst, dotfile.src],
debug=opts.debug)
insttmp = None
if dotfile.template and \
@@ -215,7 +216,7 @@ def _dotfile_install(opts, dotfile, tmpdir=None):
LOG.dbg(dotfile.prt())
ignores = list(set(opts.install_ignore + dotfile.instignore))
ignores = ignores_to_absolute(ignores, dotfile.dst, debug=opts.debug)
ignores = ignores_to_absolute(ignores, [dotfile.dst, dotfile.src], debug=opts.debug)
is_template = dotfile.template and Templategen.path_is_template(
dotfile.src,

View File

@@ -96,7 +96,8 @@ class Updater:
ret = False
new_path = None
ignores = list(set(self.ignore + dotfile.upignore))
ignores = ignores_to_absolute(ignores, dotfile.dst,
prefixes = [dotfile.dst, dotfile.src]
ignores = ignores_to_absolute(ignores, prefixes,
debug=self.debug)
self.log.dbg(f'ignore pattern(s) for {path}: {ignores}')