Bug#506861: python-debian: Please add support for lzma-compressed debs
Stefano Zacchiroli
zack at debian.org
Tue Nov 25 12:15:06 UTC 2008
severity 506861 wishlist
thanks
On Tue, Nov 25, 2008 at 03:39:02AM -0800, Josh Triplett wrote:
> Unfortunately, the tarfile module doesn't currently support LZMA
> (bug 503983), probably because Python doesn't have a standard module
> for LZMA as it does for gzip and bz2.
It is not carved in stone that the debfile implementation should use
the decompression support offered by tarfile. It is also possible to
first create a file-like object corresponding to the already
decompressed .lzma and then use tarfile on top of it.
Apparently there is a Python module which support LZMA compression:
http://www.joachim-bauch.de/projects/python/pylzma/. It has to be
checked whether it can _export_ a file-like object, and whether that
actually works with tarfile. The only alternative is to decompress
the .lzma files in a temporary directory, which is something that thus
far debfile has always tried *not* to do.
Also, having a reference .deb which actually uses .lzma compression as
a test case would be good.
Cheers.
--
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..| . |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20081125/c987de98/attachment.pgp
More information about the pkg-python-debian-maint
mailing list