1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 03:59:17 +00:00

fix instignore when installing link_children

This commit is contained in:
deadc0de6
2021-07-15 08:50:40 +02:00
parent 3f00e21ee4
commit 275645bab7
2 changed files with 116 additions and 4 deletions

View File

@@ -259,7 +259,8 @@ class Installer:
ret, err = self.install(templater, src, tmp,
LinkTypes.NOLINK,
actionexec=actionexec,
is_template=is_template)
is_template=is_template,
ignore=ignore)
if not ret and not os.path.exists(tmp):
return ret, err
src = tmp
@@ -324,7 +325,8 @@ class Installer:
ret2, err2 = self.install(templater, subsrc, tmp,
LinkTypes.NOLINK,
actionexec=actionexec,
is_template=is_template)
is_template=is_template,
ignore=ignore)
if not ret2 and err2 and not os.path.exists(tmp):
continue
subsrc = tmp
@@ -680,8 +682,6 @@ class Installer:
self.log.dry('would mkdir -p {}'.format(directory))
return True
self.log.dbg('mkdir -p {}'.format(directory))
if not self.comparing:
self.log.sub('create directory {}'.format(directory))
os.makedirs(directory, exist_ok=True)
return os.path.exists(directory)