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:
@@ -100,8 +100,14 @@ class ArchiveTar(ArchiveBase):
|
|||||||
self.tar = tarfile.open(self.file_path, rmode)
|
self.tar = tarfile.open(self.file_path, rmode)
|
||||||
oldwd = os.getcwd()
|
oldwd = os.getcwd()
|
||||||
os.chdir(target_dir)
|
os.chdir(target_dir)
|
||||||
|
|
||||||
|
install_tar_path = util.join_path(ctx.config.tmp_dir(), "install.tar")
|
||||||
for tarinfo in self.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)
|
self.tar.extract(tarinfo)
|
||||||
|
|
||||||
os.chdir(oldwd)
|
os.chdir(oldwd)
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user