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 [EMAIL PROTECTED],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
signature.asc
Description: Digital signature

