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

remove error reported by logger for #268

This commit is contained in:
deadc0de6
2020-10-26 13:22:13 +01:00
parent 0ae35fa071
commit bd09d4070f
4 changed files with 38 additions and 28 deletions

View File

@@ -114,7 +114,7 @@ class Updater:
ret = self._handle_file(new_path, dtpath)
# clean temporary files
if new_path != path and os.path.exists(new_path):
remove(new_path)
remove(new_path, logger=self.log)
return ret
def _apply_trans_w(self, path, dotfile):
@@ -133,7 +133,7 @@ class Updater:
msg = 'transformation \"{}\" failed for {}'
self.log.err(msg.format(trans.key, dotfile.key))
if os.path.exists(tmp):
remove(tmp)
remove(tmp, logger=self.log)
return None
return tmp
@@ -273,7 +273,7 @@ class Updater:
self.log.dbg('rm -r {}'.format(old))
if not self._confirm_rm_r(old):
continue
remove(old)
remove(old, logger=self.log)
self.log.sub('\"{}\" dir removed'.format(old))
# handle files diff
@@ -326,7 +326,7 @@ class Updater:
continue
if self.debug:
self.log.dbg('rm {}'.format(new))
remove(new)
remove(new, logger=self.log)
self.log.sub('\"{}\" removed'.format(new))
# compare rights