1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 15:39:43 +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
"""
# check file content
tmp = None
if content:
tmp = utils.write_to_tmpfile(content)
src = tmp
ret = utils.fastdiff(src, dst)
if ret:
self.log.dbg('content differ')
utils.removepath(tmp)
return ret
def _show_diff_before_write(self, src, dst, content=None):