On Jan 20, 2007, at 18:48, Ronald Oussoren wrote:
I used to use tarfile on 10.3 to extract a bz2 compressed tarball. I
tried the code today on 10.4, and untaring fail silently after about
5% of tarball content, without any error.
This is the failing code:
tar = tarfile.open(os.path.join(SHARE, 'underlay.tar.bz2'),
mode='r:bz2')
for member in tar:
tar.extract(member, WIKI)
tar.close()
The tarball contains 794 pages, but this code will extract only 47
pages. Again, this used to work correctly about 1 year ago with
10.3.7.
The script looks fine. How did you create the archive?
The original tar was created on Linux around a year ago, I don't know
how it was created. Trying to extract the original file fail after 42
members.
I extracted the tarball and created it again with /usr/bin/tar (GNU
tar) 1.14. This version seems to be the same version installed by
default on 10.4.8. Trying to extract the new tarball fail after 47
members.
Best Regards,
Nir Soffer
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig