summaryrefslogtreecommitdiff
path: root/rpmio/rpmfileutil.c
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-24 15:56:11 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-04-29 08:48:56 +0300
commitbcad08867d9c9550d80f9ca8ba42c4e27d3c493b (patch)
tree1e99338e9d6283b66ff46c8d026602dd32bd9cdc /rpmio/rpmfileutil.c
parentfe8d88872bc7109a8cc1b75bc8e4689ed2135bf4 (diff)
downloadrpm-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.c3
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 */