mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 20:25:17 +00:00
more logs
This commit is contained in:
@@ -563,6 +563,7 @@ class Installer:
|
|||||||
content = None
|
content = None
|
||||||
if is_template:
|
if is_template:
|
||||||
# template the file
|
# template the file
|
||||||
|
self.log.dbg(f'it is a template: {src}')
|
||||||
saved = templater.add_tmp_vars(self._get_tmp_file_vars(src, dst))
|
saved = templater.add_tmp_vars(self._get_tmp_file_vars(src, dst))
|
||||||
try:
|
try:
|
||||||
content = templater.generate(src)
|
content = templater.generate(src)
|
||||||
@@ -689,6 +690,7 @@ class Installer:
|
|||||||
|
|
||||||
if os.path.lexists(dst):
|
if os.path.lexists(dst):
|
||||||
# file/symlink exists
|
# file/symlink exists
|
||||||
|
self.log.dbg(f'file already exists on filesystem: {dst}')
|
||||||
try:
|
try:
|
||||||
os.stat(dst)
|
os.stat(dst)
|
||||||
except OSError as exc:
|
except OSError as exc:
|
||||||
@@ -714,6 +716,8 @@ class Installer:
|
|||||||
|
|
||||||
if self.backup:
|
if self.backup:
|
||||||
self._backup(dst)
|
self._backup(dst)
|
||||||
|
else:
|
||||||
|
self.log.dbg(f'file does not exist on filesystem: {dst}')
|
||||||
|
|
||||||
# create hierarchy
|
# create hierarchy
|
||||||
base = os.path.dirname(dst)
|
base = os.path.dirname(dst)
|
||||||
|
|||||||
Reference in New Issue
Block a user