2010-03-26 11:56:28 +01:00
|
|
|
--- ./build/pack.c.orig 2010-03-25 15:18:23.000000000 +0000
|
|
|
|
+++ ./build/pack.c 2010-03-25 15:23:54.000000000 +0000
|
|
|
|
@@ -375,7 +375,9 @@ rpmRC writeRPM(Header *hdrp, unsigned ch
|
2009-09-02 18:05:59 +02:00
|
|
|
const char *compr = NULL;
|
|
|
|
headerPutString(h, RPMTAG_PAYLOADFORMAT, "cpio");
|
|
|
|
|
2010-03-26 11:56:28 +01:00
|
|
|
- if (rstreq(s+1, "gzdio")) {
|
|
|
|
+ if (rstreq(s+1, "ufdio")) {
|
2009-09-02 18:05:59 +02:00
|
|
|
+ compr = NULL;
|
2010-03-26 11:56:28 +01:00
|
|
|
+ } else if (rstreq(s+1, "gzdio")) {
|
2009-09-02 18:05:59 +02:00
|
|
|
compr = "gzip";
|
|
|
|
#if HAVE_BZLIB_H
|
2010-03-26 11:56:28 +01:00
|
|
|
} else if (rstreq(s+1, "bzdio")) {
|
|
|
|
@@ -398,7 +400,8 @@ rpmRC writeRPM(Header *hdrp, unsigned ch
|
2009-09-02 18:05:59 +02:00
|
|
|
goto exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
- headerPutString(h, RPMTAG_PAYLOADCOMPRESSOR, compr);
|
|
|
|
+ if (compr)
|
|
|
|
+ headerPutString(h, RPMTAG_PAYLOADCOMPRESSOR, compr);
|
|
|
|
buf = xstrdup(rpmio_flags);
|
|
|
|
buf[s - rpmio_flags] = '\0';
|
|
|
|
headerPutString(h, RPMTAG_PAYLOADFLAGS, buf+1);
|