]>
Commit | Line | Data |
---|---|---|
19396011 PG |
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")) { | |
80b3ec46 | 15 | + t = stpcpy(t, ((psm->goal == PSM_PKGSAVE) ? "w5" : "r")); |
19396011 PG |
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, |