aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/utilities.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/utilities.py b/sos/utilities.py
index 32e08012..a3859f1c 100644
--- a/sos/utilities.py
+++ b/sos/utilities.py
@@ -252,6 +252,8 @@ class TarFileArchive(Archive):
else:
dest = self.prepend(src)
+ if dest in self.tarfile.getnames():
+ return
if src != '/':
self.add_parent(src)