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

adding more debug

This commit is contained in:
deadc0de6
2019-02-03 14:28:06 +01:00
parent 8e9f1b2468
commit 39195ed44c

View File

@@ -37,6 +37,8 @@ class Installer:
def install(self, templater, src, dst, actions=[], noempty=False):
"""install the src to dst using a template"""
if self.debug:
self.log.dbg('install {} to {}'.format(src, dst))
self.action_executed = False
src = os.path.join(self.base, os.path.expanduser(src))
if not os.path.exists(src):
@@ -59,6 +61,8 @@ class Installer:
def link(self, templater, src, dst, actions=[]):
"""set src as the link target of dst"""
if self.debug:
self.log.dbg('link {} to {}'.format(src, dst))
self.action_executed = False
src = os.path.join(self.base, os.path.expanduser(src))
if not os.path.exists(src):
@@ -82,6 +86,8 @@ class Installer:
def linkall(self, templater, src, dst, actions=[]):
"""link all dotfiles in a given directory"""
if self.debug:
self.log.dbg('linkall {} to {}'.format(src, dst))
self.action_executed = False
parent = os.path.join(self.base, os.path.expanduser(src))