Ralf S. Engelschall wrote:
> RPM Package Manager, CVS Repository
> + else if ( (file_len > 3 && strcasecmp(file+file_len-3,
> ".lz") == 0)
> + || (file_len > 3 && strcasecmp(file+file_len-3, ".
> 7z") == 0)
> + || (file_len > 5 && strcasecmp(file+file_len-5,
> ".lzma") == 0)) {
> + *compressed = COMPRESSED_LZMA;
> + return 0;
> + }
This is not correct, 7-zip is a different format from LZMA (compare
zip/gzip)
Might want to add a COMPRESSED_7ZIP some day, to handle the p7zip*
archives...
* see http://sourceforge.net/projects/p7zip/
But it should probably be:
else if ( (file_len > 4 && strcasecmp(file+file_len-3, ".tlz")
== 0)
|| (file_len > 5 && strcasecmp(file+file_len-5,
".lzma") == 0)) {
As far as I know, the suffix ".lz" isn't any more common than ".bz"
suffix ?
--anders
Received on Sun Apr 13 12:42:02 2008