]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- use bzip2 when lzma is not installed
authorwitekfl <witekfl@pld-linux.org>
Fri, 8 Sep 2006 18:41:22 +0000 (18:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-bzip2_fallback.patch -> 1.1

rpm-bzip2_fallback.patch [new file with mode: 0644]

diff --git a/rpm-bzip2_fallback.patch b/rpm-bzip2_fallback.patch
new file mode 100644 (file)
index 0000000..d12d2ba
--- /dev/null
@@ -0,0 +1,16 @@
+--- rpm-4.4.6/build/pack.c.old 2006-09-08 20:06:51.000000000 +0200
++++ rpm-4.4.6/build/pack.c     2006-09-08 20:12:46.000000000 +0200
+@@ -557,6 +557,13 @@
+       payload_format = _free(payload_format);
+       payload_format = xstrdup("cpio");
+     }
++    /* Fallback to bzip2 when lzma is not installed. */
++    if (rpmio_flags && !strcmp(rpmio_flags, "w9.lzdio")) {
++      if (access("/usr/bin/lzma", X_OK)) {
++          rpmio_flags = _free(rpmio_flags);
++          rpmio_flags = xstrdup("w9.bzdio");
++      }
++    }
+     if (!(rpmio_flags && *rpmio_flags)) {
+       rpmio_flags = _free(rpmio_flags);
+       rpmio_flags = xstrdup("w9.gzdio");
This page took 0.041177 seconds and 4 git commands to generate.