aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/archive.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/archive.py b/sos/archive.py
index 807c0431..42916606 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -132,7 +132,8 @@ class FileCacheArchive(Archive):
def add_link(self, source, link_name):
dest = self.dest_path(link_name)
self._check_path(dest)
- os.symlink(source, dest)
+ if not os.path.exists(dest):
+ os.symlink(source, dest)
self.log.debug("added symlink at %s to %s in FileCacheArchive %s"
% (dest, source, self._archive_root))