]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-lzma-compress-level.patch
- compress debuginfo sections with zlib (reduce /usr/lib/debug size).
[packages/rpm.git] / rpm-lzma-compress-level.patch
CommitLineData
62238cf9 1--- rpm-4.5/lib/psm.c~ 2008-11-22 17:18:39.325237949 +0100
2+++ rpm-4.5/lib/psm.c 2008-11-22 17:30:16.807430141 +0100
3@@ -2308,13 +2308,16 @@
4 replace_lzma_with_gzip(psm->oh);
5 }
6 *t = '\0';
7- t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w9" : "r"));
8- if (!strcmp(payload_compressor, "gzip"))
9- t = stpcpy(t, ".gzdio");
10- if (!strcmp(payload_compressor, "bzip2"))
11- t = stpcpy(t, ".bzdio");
12- if (!strcmp(payload_compressor, "lzma"))
13- t = stpcpy(t, ".lzdio");
14+ if (!strcmp(payload_compressor, "lzma")) {
15+ t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w7" : "r"));
16+ t = stpcpy(t, ".lzdio");
17+ } else {
18+ t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w9" : "r"));
19+ if (!strcmp(payload_compressor, "gzip"))
20+ t = stpcpy(t, ".gzdio");
21+ if (!strcmp(payload_compressor, "bzip2"))
22+ t = stpcpy(t, ".bzdio");
23+ }
24
25 /*@-branchstate@*/
26 if (!hge(fi->h, RPMTAG_PAYLOADFORMAT, NULL,
This page took 0.045278 seconds and 4 git commands to generate.