Bug#462859: Pinging on python-debian support for tar.bz2 archives

Tom Parker palfrey at tevp.net
Tue Sep 9 16:47:09 UTC 2008


2008/9/9 Stefano Zacchiroli <zack at debian.org>

> Unfortunately not, thus far I haven't been able to try out the solution
> (4) mentioned in the bug log to, which looks like the most likely to be
> successful.
>
> If you want to help, feel free to try it out and provide a patch. If you
> can't do that, even only verifying whether all the methods of the
> file-like interface we use are supported by tarfile would help.
>

Done and attached :-) The biggest problem is that Tarfile's __init__ method
doesn't actually allow for "r:bz2" opening (who knows why... and it's not
recommended in general for use by the Python 2.5.1 docs I have locally), but
if you call Tarfile.open() instead, then that does and it returns a new
Tarfile object. Right now I'm just fixing the tgz() method so it does the
right thing when it has a .bz2 instead, but you may wish to rename this
method as well....

Tom Parker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20080909/a53ed45d/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bz2-debfile.patch
Type: text/x-diff
Size: 2773 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20080909/a53ed45d/attachment.patch 


More information about the pkg-python-debian-maint mailing list