From d86567a861ba4c53d245cc022680a9f60f1ab18a Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Mon, 24 Sep 2018 22:34:30 +0200 Subject: [PATCH] force symlink re-creation when moving from template to non-template and vice-versa --- dotdrop/installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotdrop/installer.py b/dotdrop/installer.py index 022dffb..6e5385d 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -61,7 +61,8 @@ class Installer: self.log.dbg('dotfile is a template') self.log.dbg('install to {} and symlink'.format(self.workdir)) tmp = self._pivot_path(dst, self.workdir, striphome=True) - if not self.install(templater, src, tmp): + i = self.install(templater, src, tmp) + if not i and not os.path.exists(tmp): return [] src = tmp return self._link(src, dst)