From 1818fd5bab4639e5ac0c5f4ec1382922dcae83d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 29 May 2006 17:26:51 +0000 Subject: [PATCH] commet it --- pisi/archive.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pisi/archive.py b/pisi/archive.py index 95387aaf..1045511a 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -103,7 +103,15 @@ class ArchiveTar(ArchiveBase): install_tar_path = util.join_path(ctx.config.tmp_dir(), "install.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): os.unlink(tarinfo.name) self.tar.extract(tarinfo)