]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-lzma-compress-level.patch
- rel 49; rebuild with new libproxy
[packages/rpm.git] / rpm-lzma-compress-level.patch
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.030147 seconds and 3 git commands to generate.