From 3e97df63c67ac570d28d44b0d0f9703f130f862e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 29 May 2006 15:52:11 +0000 Subject: [PATCH] this seems to fix bug with zlib... I'll (or some one else) will write a detailed explanation (and comment) about this but for now please test it... --- pisi/archive.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pisi/archive.py b/pisi/archive.py index 3b9165c0..95387aaf 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -100,8 +100,14 @@ class ArchiveTar(ArchiveBase): self.tar = tarfile.open(self.file_path, rmode) oldwd = os.getcwd() os.chdir(target_dir) + + install_tar_path = util.join_path(ctx.config.tmp_dir(), "install.tar") for tarinfo in self.tar: + # zlib bug... + if self.file_path == install_tar_path and os.path.exists(tarinfo.name): + os.unlink(tarinfo.name) self.tar.extract(tarinfo) + os.chdir(oldwd) self.close()