mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 07:54:15 +00:00
refactoring
This commit is contained in:
@@ -169,7 +169,7 @@ class Updater:
|
|||||||
return None
|
return None
|
||||||
return tmp
|
return tmp
|
||||||
|
|
||||||
def _is_template(self, path):
|
def _is_template(self, path, ignores):
|
||||||
if not Templategen.path_is_template(path,
|
if not Templategen.path_is_template(path,
|
||||||
debug=self.debug):
|
debug=self.debug):
|
||||||
self.log.dbg(f'{path} is NO template')
|
self.log.dbg(f'{path} is NO template')
|
||||||
@@ -221,7 +221,7 @@ class Updater:
|
|||||||
self.log.sub(f'\"{local_path}\" ignored')
|
self.log.sub(f'\"{local_path}\" ignored')
|
||||||
return True
|
return True
|
||||||
self.log.dbg(f'update for file {deployed_path} and {local_path}')
|
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
|
# dotfile is a template
|
||||||
self.log.dbg(f'{local_path} is a template')
|
self.log.dbg(f'{local_path} is a template')
|
||||||
if self.showpatch:
|
if self.showpatch:
|
||||||
|
|||||||
Reference in New Issue
Block a user