diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-03-18 11:24:52 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-03-18 11:24:52 +0200 |
commit | fa0898552d3c52249bc41e8104eda02c1bbd3359 (patch) | |
tree | 91fb24ddf5c8129872e15e99bcecc175b7de30bc /lib | |
parent | 8078d0ba24662308b10d9eb0f0da978584b7e757 (diff) | |
download | librpm-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 'lib')
-rw-r--r-- | lib/psm.c | 2 | ||||
-rw-r--r-- | lib/rpmds.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -1609,6 +1609,8 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage) psm->rpmio_flags = "r.bzdio"; if (!strcmp(payload_compressor, "xz")) psm->rpmio_flags = "r.xzdio"; + if (!strcmp(payload_compressor, "lzma")) + psm->rpmio_flags = "r.lzdio"; rpmtdFreeData(&pc); headerFree(h); diff --git a/lib/rpmds.c b/lib/rpmds.c index 39649db06..ba02ee32c 100644 --- a/lib/rpmds.c +++ b/lib/rpmds.c @@ -974,6 +974,9 @@ static const struct rpmlibProvides_s rpmlibProvides[] = { { "rpmlib(PayloadIsXz)", "5.2-1", (RPMSENSE_RPMLIB|RPMSENSE_EQUAL), N_("package payload can be compressed using xz.") }, + { "rpmlib(PayloadIsLzma)", "4.4.2-1", + (RPMSENSE_RPMLIB|RPMSENSE_EQUAL), + N_("package payload can be compressed using lzma.") }, #endif { "rpmlib(PayloadFilesHavePrefix)", "4.0-1", (RPMSENSE_RPMLIB|RPMSENSE_EQUAL), |