mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 05:59:15 +00:00
fix update directory for #63
This commit is contained in:
@@ -39,6 +39,7 @@ class Updater:
|
|||||||
dotfile = self._get_dotfile_by_path(path, profile)
|
dotfile = self._get_dotfile_by_path(path, profile)
|
||||||
if not dotfile:
|
if not dotfile:
|
||||||
return False
|
return False
|
||||||
|
path = os.path.expanduser(path)
|
||||||
if self.debug:
|
if self.debug:
|
||||||
self.log.dbg('updating {} from path \"{}\"'.format(dotfile, path))
|
self.log.dbg('updating {} from path \"{}\"'.format(dotfile, path))
|
||||||
return self._update(path, dotfile)
|
return self._update(path, dotfile)
|
||||||
@@ -110,6 +111,8 @@ class Updater:
|
|||||||
if self.debug:
|
if self.debug:
|
||||||
self.log.dbg('update for file {} and {}'.format(left, right))
|
self.log.dbg('update for file {} and {}'.format(left, right))
|
||||||
if self._is_template(right):
|
if self._is_template(right):
|
||||||
|
if self.debug:
|
||||||
|
self.log.dbg('{} is a template'.format(right))
|
||||||
return False
|
return False
|
||||||
if compare and filecmp.cmp(left, right, shallow=True):
|
if compare and filecmp.cmp(left, right, shallow=True):
|
||||||
# no difference
|
# no difference
|
||||||
|
|||||||
Reference in New Issue
Block a user