1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00

fix bug in compare

This commit is contained in:
deadc0de6
2017-03-15 21:38:45 +01:00
parent 0c1c42a83d
commit 17526caef9

View File

@@ -123,7 +123,7 @@ class Installer:
def compare(self, templater, tmpfolder, profile, src, dst):
'''Compare temporary generated dotfile with local one'''
ret = False
retval = False
drysaved = self.dry
self.dry = False
diffsaved = self.diff
@@ -141,9 +141,9 @@ class Installer:
diff = utils.diff(tmpdst, dst, log=False, raw=False)
if diff == '':
self.log.raw('same file')
ret = True
retval = True
else:
self.log.emph(diff)
self.dry = drysaved
self.diff = diffsaved
return ret
return retval