1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 21:54:16 +00:00

refactoring

This commit is contained in:
deadc0de6
2020-11-06 09:03:51 +01:00
parent 204871e725
commit 358dbe7c3b
4 changed files with 16 additions and 16 deletions

View File

@@ -281,7 +281,7 @@ class Installer:
return False, err
overwrite = True
try:
utils.remove(dst)
utils.removepath(dst)
except OSError as e:
err = 'something went wrong with {}: {}'.format(src, e)
return False, err
@@ -302,7 +302,7 @@ class Installer:
err = 'ignoring "{}", link was not created'.format(dst)
return False, err
try:
utils.remove(dst)
utils.removepath(dst)
except OSError as e:
err = 'something went wrong with {}: {}'.format(src, e)
return False, err
@@ -537,7 +537,7 @@ class Installer:
diff = utils.diff(modified=src, original=dst, raw=False,
diff_cmd=self.diff_cmd)
if tmp:
utils.remove(tmp, logger=self.log)
utils.removepath(tmp, logger=self.log)
if not quiet and diff:
self._print_diff(src, dst, diff)