mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 20:09:18 +00:00
refactoring
This commit is contained in:
@@ -319,10 +319,10 @@ class Installer:
|
|||||||
if not self._create_dirs(base):
|
if not self._create_dirs(base):
|
||||||
self.log.err('creating directory for {}'.format(dst))
|
self.log.err('creating directory for {}'.format(dst))
|
||||||
return -1
|
return -1
|
||||||
if self.debug:
|
|
||||||
self.log.dbg('write content to {}'.format(dst))
|
|
||||||
if not self._exec_pre_actions(actions):
|
if not self._exec_pre_actions(actions):
|
||||||
return -1
|
return -1
|
||||||
|
if self.debug:
|
||||||
|
self.log.dbg('write content to {}'.format(dst))
|
||||||
# re-check in case action created the file
|
# re-check in case action created the file
|
||||||
if self.safe and not overwrite and os.path.lexists(dst):
|
if self.safe and not overwrite and os.path.lexists(dst):
|
||||||
if not self.log.ask('Overwrite \"{}\"'.format(dst)):
|
if not self.log.ask('Overwrite \"{}\"'.format(dst)):
|
||||||
|
|||||||
Reference in New Issue
Block a user