]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- added lzma_w7 patch - first attempt to make lzma usable on non-high-end
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 23 Nov 2008 15:20:23 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  machines

Changed files:
    rpm-lzma-compress-level.patch -> 1.1

rpm-lzma-compress-level.patch [new file with mode: 0644]

diff --git a/rpm-lzma-compress-level.patch b/rpm-lzma-compress-level.patch
new file mode 100644 (file)
index 0000000..c77311e
--- /dev/null
@@ -0,0 +1,26 @@
+--- rpm-4.5/lib/psm.c~ 2008-11-22 17:18:39.325237949 +0100
++++ rpm-4.5/lib/psm.c  2008-11-22 17:30:16.807430141 +0100
+@@ -2308,13 +2308,16 @@
+           replace_lzma_with_gzip(psm->oh);
+       }
+       *t = '\0';
+-      t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w9" : "r"));
+-      if (!strcmp(payload_compressor, "gzip"))
+-          t = stpcpy(t, ".gzdio");
+-      if (!strcmp(payload_compressor, "bzip2"))
+-          t = stpcpy(t, ".bzdio");
+-      if (!strcmp(payload_compressor, "lzma"))
+-          t = stpcpy(t, ".lzdio");
++      if (!strcmp(payload_compressor, "lzma")) {
++              t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w7" : "r"));
++              t = stpcpy(t, ".lzdio");
++      } else {
++              t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w9" : "r"));
++              if (!strcmp(payload_compressor, "gzip"))
++                      t = stpcpy(t, ".gzdio");
++              if (!strcmp(payload_compressor, "bzip2"))
++                      t = stpcpy(t, ".bzdio");
++      }
+       /*@-branchstate@*/
+       if (!hge(fi->h, RPMTAG_PAYLOADFORMAT, NULL,
This page took 0.037953 seconds and 4 git commands to generate.