diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-04-24 15:56:11 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-04-29 08:48:56 +0300 |
commit | bcad08867d9c9550d80f9ca8ba42c4e27d3c493b (patch) | |
tree | 1e99338e9d6283b66ff46c8d026602dd32bd9cdc /rpmio/rpmfileutil.c | |
parent | fe8d88872bc7109a8cc1b75bc8e4689ed2135bf4 (diff) | |
download | rpm-bcad08867d9c9550d80f9ca8ba42c4e27d3c493b.tar.gz |
Add lzip support.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Diffstat (limited to 'rpmio/rpmfileutil.c')
-rw-r--r-- | rpmio/rpmfileutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpmio/rpmfileutil.c b/rpmio/rpmfileutil.c index f44eb35e3..60fe292e8 100644 --- a/rpmio/rpmfileutil.c +++ b/rpmio/rpmfileutil.c @@ -369,6 +369,9 @@ int rpmFileIsCompressed(const char * file, rpmCompressedMagic * compressed) (magic[4] == 0x5a) && (magic[5] == 0x00)) { /* new style xz (lzma) with magic */ *compressed = COMPRESSED_XZ; + } else if ((magic[0] == 'L') && (magic[1] == 'Z') && + (magic[2] == 'I') && (magic[3] == 'P')) { + *compressed = COMPRESSED_LZIP; } else if (((magic[0] == 0037) && (magic[1] == 0213)) || /* gzip */ ((magic[0] == 0037) && (magic[1] == 0236)) || /* old gzip */ ((magic[0] == 0037) && (magic[1] == 0036)) || /* pack */ |