]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-bzip2_fallback.patch
- find_lang.patch dropped (source is modified instead)
[packages/rpm.git] / rpm-bzip2_fallback.patch
CommitLineData
8ff7d827 1--- rpm-4.4.6/build/pack.c.old 2006-09-08 20:06:51.000000000 +0200
2+++ rpm-4.4.6/build/pack.c 2006-09-08 20:12:46.000000000 +0200
3@@ -557,6 +557,13 @@
4 payload_format = _free(payload_format);
5 payload_format = xstrdup("cpio");
6 }
7+ /* Fallback to bzip2 when lzma is not installed. */
8+ if (rpmio_flags && !strcmp(rpmio_flags, "w9.lzdio")) {
9+ if (access("/usr/bin/lzma", X_OK)) {
10+ rpmio_flags = _free(rpmio_flags);
11+ rpmio_flags = xstrdup("w9.bzdio");
12+ }
13+ }
14 if (!(rpmio_flags && *rpmio_flags)) {
15 rpmio_flags = _free(rpmio_flags);
16 rpmio_flags = xstrdup("w9.gzdio");
This page took 0.032511 seconds and 4 git commands to generate.