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

fix preserve

This commit is contained in:
deadc0de6
2023-09-22 11:02:59 +02:00
committed by deadc0de
parent 92e23923fe
commit 3e41cccd62

View File

@@ -133,7 +133,8 @@ class Installer:
ret, err = self._copy_dir(templater, src, dst, ret, err = self._copy_dir(templater, src, dst,
actionexec=actionexec, actionexec=actionexec,
noempty=noempty, ignore=ignore, noempty=noempty, ignore=ignore,
is_template=is_template) is_template=is_template,
chmod=chmod)
else: else:
ret, err = self._copy_file(templater, src, dst, ret, err = self._copy_file(templater, src, dst,
actionexec=actionexec, actionexec=actionexec,
@@ -586,7 +587,8 @@ class Installer:
def _copy_dir(self, templater, src, dst, def _copy_dir(self, templater, src, dst,
actionexec=None, noempty=False, actionexec=None, noempty=False,
ignore=None, is_template=True): ignore=None, is_template=True,
chmod=None):
""" """
install src to dst when is a directory install src to dst when is a directory
@@ -617,7 +619,8 @@ class Installer:
# error occured # error occured
return res, err return res, err
self._apply_chmod_after_install(fpath, fdst, ret, err) self._apply_chmod_after_install(fpath, fdst, ret, err,
chmod=chmod)
if res: if res:
# something got installed # something got installed