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...
This commit is contained in:
Barış Metin
2006-05-29 15:52:11 +00:00
parent a87277d648
commit 3e97df63c6
+6
View File
@@ -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()