In ALT Linux we often use uncompressed tarballs as RPM Source files. RPM's LZMA compression support breaks our packages: in many cases, the tarball will contain zeroes at offsets 9..12, and isCompressed() will report it to be an LZMA-compressed file.
One possible fix is to use libmagic, which seems to be able to tell tarballs from LZMA compression. Alternatively, we could check for an .lzma extension in the filename. (I could just disable LZMA decompression support in our build, but I don't want to create local incompatibilities if 4.5 is going to be the "all-round compatible" version of RPM.) There are no LZMA-compessed sources in ALT Linux, so any solution will suit us, as long as it does not try to 'lzma -d' our tarballs. -- Best regards, Alex V. Myltsev. ______________________________________________________________________ RPM Package Manager http://rpm5.org Developer Communication List [email protected]
