fix #2847
This commit is contained in:
+2
-1
@@ -112,7 +112,8 @@ class ArchiveTar(ArchiveBase):
|
||||
#
|
||||
# Also, tar.extract() doesn't write on symlinks... Not any
|
||||
# more :).
|
||||
if self.file_path == install_tar_path and os.path.exists(tarinfo.name):
|
||||
if self.file_path == install_tar_path and os.path.exists(tarinfo.name) \
|
||||
and not os.path.isdir(tarinfo.name):
|
||||
os.unlink(tarinfo.name)
|
||||
self.tar.extract(tarinfo)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user