mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 01:44:16 +00:00
fix preserve
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user