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

commet it

üst 3e97df63
...@@ -103,7 +103,15 @@ class ArchiveTar(ArchiveBase): ...@@ -103,7 +103,15 @@ class ArchiveTar(ArchiveBase):
install_tar_path = util.join_path(ctx.config.tmp_dir(), "install.tar") install_tar_path = util.join_path(ctx.config.tmp_dir(), "install.tar")
for tarinfo in self.tar: for tarinfo in self.tar:
# zlib bug... # Installing packages (especially shared libraries) is a
# bit tricky. You should also change the inode if you
# change the file, cause the file is opened allready and
# accessed. Removing and creating the file will also
# change the inode and will do the trick (in fact, old
# file will be deleted only when its closed).
#
# 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):
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