mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 09:49:17 +00:00
fix empty installation
This commit is contained in:
@@ -175,8 +175,8 @@ class Installer:
|
|||||||
self.log.dbg('install to {} and symlink'
|
self.log.dbg('install to {} and symlink'
|
||||||
.format(self.workdir))
|
.format(self.workdir))
|
||||||
tmp = self._pivot_path(dst, self.workdir, striphome=True)
|
tmp = self._pivot_path(dst, self.workdir, striphome=True)
|
||||||
i = self.install(templater, src, tmp, actions=actions)
|
r, e = self.install(templater, src, tmp, actions=actions)
|
||||||
if not i and not os.path.exists(tmp):
|
if not r and e and not os.path.exists(tmp):
|
||||||
continue
|
continue
|
||||||
src = tmp
|
src = tmp
|
||||||
|
|
||||||
@@ -285,7 +285,7 @@ class Installer:
|
|||||||
os.path.join(dst, entry),
|
os.path.join(dst, entry),
|
||||||
actions=actions,
|
actions=actions,
|
||||||
noempty=noempty)
|
noempty=noempty)
|
||||||
if not res:
|
if not res and err:
|
||||||
ret = res, err
|
ret = res, err
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
@@ -293,7 +293,7 @@ class Installer:
|
|||||||
os.path.join(dst, entry),
|
os.path.join(dst, entry),
|
||||||
actions=actions,
|
actions=actions,
|
||||||
noempty=noempty)
|
noempty=noempty)
|
||||||
if not res:
|
if not res and err:
|
||||||
ret = res, err
|
ret = res, err
|
||||||
break
|
break
|
||||||
return ret
|
return ret
|
||||||
|
|||||||
Reference in New Issue
Block a user