Bug#462859: debfile fails for packages using data.tar.bz2
Filippo Giunchedi
filippo at debian.org
Wed Feb 20 19:02:30 UTC 2008
On Wed, Feb 20, 2008 at 10:00:55AM -0800, Cameron Dale wrote:
> 4) Use the tarfile module to handle the decompression. According to
> the documentation, it can also take a file-like object fileobj as
> input, and specifying "r:bz2" (or just "r" for compression-detection)
> is supposed to work on compressed tar files. (I say supposed, because
> I was not able to get it to work, but that might just be me.)
>
> Of the other solutions, I think implementing (2) by creating a wrapper
> file-like class around the bz2 incremental decompressor
> BZ2Decompressor is a good and fairly easy solution. Although my
> initial problem would be solved by (3) since I don't need access to
> the contents of the deb's data file.
Looking at the tarfile source looks like (2) and (4) would be equivalent, with
the latter requiring less effort and code.
thanks for your comments,
filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:
Recursion is the root of computation since it trades description for time.
-- Alan Perlis
More information about the pkg-python-debian-maint
mailing list