1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 07:58:48 +00:00

refactoring

This commit is contained in:
deadc0de6
2023-05-04 21:13:54 +02:00
committed by deadc0de
parent 83b7965207
commit af55fd3bb1

View File

@@ -169,7 +169,7 @@ class Updater:
return None
return tmp
def _is_template(self, path):
def _is_template(self, path, ignores):
if not Templategen.path_is_template(path,
debug=self.debug):
self.log.dbg(f'{path} is NO template')
@@ -221,7 +221,7 @@ class Updater:
self.log.sub(f'\"{local_path}\" ignored')
return True
self.log.dbg(f'update for file {deployed_path} and {local_path}')
if self._is_template(local_path):
if self._is_template(local_path, ignores):
# dotfile is a template
self.log.dbg(f'{local_path} is a template')
if self.showpatch: