summaryrefslogtreecommitdiff
path: root/rpm2cpio.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-03-18 11:24:52 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-03-18 11:24:52 +0200
commitfa0898552d3c52249bc41e8104eda02c1bbd3359 (patch)
tree91fb24ddf5c8129872e15e99bcecc175b7de30bc /rpm2cpio.c
parent8078d0ba24662308b10d9eb0f0da978584b7e757 (diff)
downloadlibrpm-tizen-fa0898552d3c52249bc41e8104eda02c1bbd3359.tar.gz
librpm-tizen-fa0898552d3c52249bc41e8104eda02c1bbd3359.tar.bz2
librpm-tizen-fa0898552d3c52249bc41e8104eda02c1bbd3359.zip
Add support for "lzma alone" compression format (lzdio)
- "lzma alone" is superseeded by XZ but it's used by Suse and Mandriva distros so it's nice to have as it doesn't need much, only open differs from XZ - rpmlib() dependency versions are an uuuuuuuugly mess here: Suse used "PayloadIsLzma = 4.4.2-1" so that's what we provide to be most compatible (hopefully). Built packages require "PayloadIsLzma <= 4.4.6-1" however to be compatible with Mandriva 2008.0. Did I already say it's ugly? - Based on similar patch in Mandriva by Per Øyvind Karlsen, but avoiding unnecessary renames in rpmio
Diffstat (limited to 'rpm2cpio.c')
-rw-r--r--rpm2cpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c
index cdf36b1ba..eabefa170 100644
--- a/rpm2cpio.c
+++ b/rpm2cpio.c
@@ -80,6 +80,8 @@ int main(int argc, char *argv[])
rpmio_flags = "r.bzdio";
if (!strcmp(payload_compressor, "xz"))
rpmio_flags = "r.xzdio";
+ if (!strcmp(payload_compressor, "lzma"))
+ rpmio_flags = "r.lzdio";
rpmtdFreeData(&pc);
}