From d6d5ea2ccff6f5f1dc83d34cf19f77ec66a2f7d6 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 11 Jun 2019 09:18:07 +0200 Subject: [PATCH] link already exists is not an error (for #154) --- dotdrop/installer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dotdrop/installer.py b/dotdrop/installer.py index da620ec..632cd7c 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -211,8 +211,10 @@ class Installer: overwrite = not self.safe if os.path.lexists(dst): if os.path.realpath(dst) == os.path.realpath(src): - err = 'ignoring "{}", link exists'.format(dst) - return False, err + msg = 'ignoring "{}", link already exists'.format(dst) + if self.debug: + self.log.dbg(msg) + return True, None if self.dry: self.log.dry('would remove {} and link to {}'.format(dst, src)) return True, None