mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 09:29:17 +00:00
clean tmp
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user