Kaydet (Commit) b4864525 authored tarafından Barış Metin's avatar Barış Metin

fix #2847

üst 1818fd5b
...@@ -112,7 +112,8 @@ class ArchiveTar(ArchiveBase): ...@@ -112,7 +112,8 @@ class ArchiveTar(ArchiveBase):
# #
# Also, tar.extract() doesn't write on symlinks... Not any # Also, tar.extract() doesn't write on symlinks... Not any
# more :). # 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) os.unlink(tarinfo.name)
self.tar.extract(tarinfo) self.tar.extract(tarinfo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment