a3e525c3c8
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=15e4b56637cb8eb79bcd6c523613409f
26 lines
806 B
Diff
26 lines
806 B
Diff
Index: build/pack.c
|
|
===================================================================
|
|
--- build/pack.c.orig
|
|
+++ build/pack.c
|
|
@@ -379,7 +379,9 @@ rpmRC writeRPM(Header *hdrp, unsigned ch
|
|
const char *compr = NULL;
|
|
headerPutString(h, RPMTAG_PAYLOADFORMAT, "cpio");
|
|
|
|
- if (strcmp(s+1, "gzdio") == 0) {
|
|
+ if (strcmp(s+1, "ufdio") == 0) {
|
|
+ compr = NULL;
|
|
+ } else if (strcmp(s+1, "gzdio") == 0) {
|
|
compr = "gzip";
|
|
#if HAVE_BZLIB_H
|
|
} else if (strcmp(s+1, "bzdio") == 0) {
|
|
@@ -402,7 +404,8 @@ rpmRC writeRPM(Header *hdrp, unsigned ch
|
|
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);
|