mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-05 07:58:48 +00:00
refactoring
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user