From af55fd3bb1db5f1620f59c2abfeb99c4676e3681 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 4 May 2023 21:13:54 +0200 Subject: [PATCH] refactoring --- dotdrop/updater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotdrop/updater.py b/dotdrop/updater.py index 7790872..2511f45 100644 --- a/dotdrop/updater.py +++ b/dotdrop/updater.py @@ -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: