1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 03:54:47 +00:00

refactoring

This commit is contained in:
deadc0de6
2019-03-29 15:11:12 +01:00
parent 2ae78aeb5d
commit 2ffef3df22

View File

@@ -319,10 +319,10 @@ class Installer:
if not self._create_dirs(base):
self.log.err('creating directory for {}'.format(dst))
return -1
if self.debug:
self.log.dbg('write content to {}'.format(dst))
if not self._exec_pre_actions(actions):
return -1
if self.debug:
self.log.dbg('write content to {}'.format(dst))
# re-check in case action created the file
if self.safe and not overwrite and os.path.lexists(dst):
if not self.log.ask('Overwrite \"{}\"'.format(dst)):