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

fix issue with not present local dotfile

This commit is contained in:
deadc0de6
2017-09-08 14:45:23 +02:00
parent d88c9956c4
commit ff6c2c2df0

View File

@@ -158,7 +158,7 @@ class Installer:
def compare(self, templater, tmpfolder, profile, src, dst):
'''Compare temporary generated dotfile with local one'''
self.comparing = True
retval = False
retval = False, ''
drysaved = self.dry
self.dry = False
diffsaved = self.diff
@@ -166,7 +166,7 @@ class Installer:
src = os.path.expanduser(src)
dst = os.path.expanduser(dst)
if not os.path.exists(dst):
self.log.warn('\"%s\" does not exist on local' % (dst))
retval = False, '\"%s\" does not exist on local\n' % (dst)
else:
ret, tmpdst = self._install_to_temp(templater,
profile,