Bug#462859: debfile fails for packages using data.tar.bz2

Filippo Giunchedi filippo at debian.org
Wed Feb 20 18:53:08 UTC 2008


On Wed, Feb 20, 2008 at 05:24:34PM +0100, Stefano Zacchiroli wrote:
> On Wed, Feb 06, 2008 at 08:44:05PM +0100, Filippo Giunchedi wrote:
> > I came up with the attached patch, it works but I'll give Zack a change to
> > comment and/or adapt before commit.
> 
> Nope, that patch will only avoid failures during the initialization of a
> DebFile object, but it won't work for actually accessing the content of
> data.tar.bz2.

Indeed, I only ran dpkg-info :(

> Go ahead, starting from my attached patch, with a proper error message
> and a commit if you want (3).

Thanks, commited and raising IOError while accessing a bz2 member.

BTW there's something like BZ2File accepting fileobj here:
http://www.rfk.id.au/software/projects/filelike/api/filelike.wrappers.htm#BZ2File

Anyhow this looks like to be fixed in the python standard library.

filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:

Age is not a particularly interesting subject. Anyone can get old. All
you have to do is live long enough.
-- Groucho Marx





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