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

clean tmp

This commit is contained in:
deadc0de6
2021-10-19 22:17:50 +02:00
parent 4117cd01c4
commit 16ecd7a1d4

View File

@@ -640,12 +640,14 @@ class Installer:
needs to be installed needs to be installed
""" """
# check file content # check file content
tmp = None
if content: if content:
tmp = utils.write_to_tmpfile(content) tmp = utils.write_to_tmpfile(content)
src = tmp src = tmp
ret = utils.fastdiff(src, dst) ret = utils.fastdiff(src, dst)
if ret: if ret:
self.log.dbg('content differ') self.log.dbg('content differ')
utils.removepath(tmp)
return ret return ret
def _show_diff_before_write(self, src, dst, content=None): def _show_diff_before_write(self, src, dst, content=None):