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

fix: make symlinks updated...

üst 13029040
......@@ -113,9 +113,13 @@ 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) \
and not os.path.isdir(tarinfo.name):
os.unlink(tarinfo.name)
if self.file_path == install_tar_path:
if os.path.isfile(tarinfo.name) or os.path.islink(tarinfo.name):
try:
os.unlink(tarinfo.name)
except OSError, e:
ctx.ui.warning(e)
self.tar.extract(tarinfo)
os.chdir(oldwd)
......
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