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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user