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);
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");
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");
26 if (!hge(fi->h, RPMTAG_PAYLOADFORMAT, NULL,