From b685d7d6d00fb5dbd879e5dffd9d0f2b22838c05 Mon Sep 17 00:00:00 2001
From: Anders Blomdell <anders.blomdell@control.lth.se>
Date: Tue, 25 Jun 2019 11:04:59 +0200
Subject: [PATCH] Delete dead symlinks

---
 secondary.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/secondary.py b/secondary.py
index f519bfa..e2128f7 100644
--- a/secondary.py
+++ b/secondary.py
@@ -133,7 +133,7 @@ class Backup:
     def delete(self, dst):
         self.log.DEBUG('Delete:', dst.name)
         dst_path = os.path.join(self.dst_root, dst.name)
-        if os.path.exists(dst_path):
+        if os.path.lexists(dst_path):
             trash_path = os.path.join(self.trash, dst.name)
             trash_dir = os.path.dirname(trash_path)
             if not os.path.exists(trash_dir):
-- 
GitLab