From c9e11ffc842103a9fc04b394ce190c4498d12e98 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 31 Mar 2019 22:42:11 +0200 Subject: [PATCH] fix empty installation --- dotdrop/installer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotdrop/installer.py b/dotdrop/installer.py index 2bdb38f..203ef35 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -175,8 +175,8 @@ class Installer: self.log.dbg('install to {} and symlink' .format(self.workdir)) tmp = self._pivot_path(dst, self.workdir, striphome=True) - i = self.install(templater, src, tmp, actions=actions) - if not i and not os.path.exists(tmp): + r, e = self.install(templater, src, tmp, actions=actions) + if not r and e and not os.path.exists(tmp): continue src = tmp @@ -285,7 +285,7 @@ class Installer: os.path.join(dst, entry), actions=actions, noempty=noempty) - if not res: + if not res and err: ret = res, err break else: @@ -293,7 +293,7 @@ class Installer: os.path.join(dst, entry), actions=actions, noempty=noempty) - if not res: + if not res and err: ret = res, err break return ret