1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 06:48:49 +00:00

fix empty installation

This commit is contained in:
deadc0de6
2019-03-31 22:42:11 +02:00
parent e8643ec8a3
commit c9e11ffc84

View File

@@ -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