Blame rpm-4.12.90-Fix-compressed-patches.patch
Branch: 659760a5762e5ea0daec51ca722c207996cfce1d
Florian Festi
77efb7
From 8fab4539051091f71d88f6b1d8c6660a40d5a5bd Mon Sep 17 00:00:00 2001
Florian Festi
77efb7
From: Florian Festi <ffesti@redhat.com>
Florian Festi
77efb7
Date: Mon, 27 Jul 2015 18:52:25 +0200
Florian Festi
77efb7
Subject: [PATCH] Fix compressed patches
Florian Festi
77efb7
Florian Festi
77efb7
Regression caused by d9f673bf2841bb8c854e6676871078ab563a51c9 caused uncompressed patch content to be printed out to std instead of being piped into patch command.
Florian Festi
77efb7
---
Florian Festi
77efb7
build/parsePrep.c | 2 +-
Florian Festi
77efb7
1 file changed, 1 insertion(+), 1 deletion(-)
Florian Festi
77efb7
Florian Festi
77efb7
diff --git a/build/parsePrep.c b/build/parsePrep.c
Florian Festi
77efb7
index 5ba5aee..b94aad2 100644
Florian Festi
77efb7
--- a/build/parsePrep.c
Florian Festi
77efb7
+++ b/build/parsePrep.c
Florian Festi
77efb7
@@ -101,7 +101,7 @@ static char *doPatch(rpmSpec spec, uint32_t c, int strip, const char *db,
Florian Festi
77efb7
Florian Festi
77efb7
/* Avoid the extra cost of fork and pipe for uncompressed patches */
Florian Festi
77efb7
if (compressed != COMPRESSED_NOT) {
Florian Festi
77efb7
- patchcmd = rpmExpand("%{uncompress: ", fn, "} || echo patch_fail | "
Florian Festi
77efb7
+ patchcmd = rpmExpand("{ %{uncompress: ", fn, "} || echo patch_fail ; } | "
Florian Festi
77efb7
"%{__patch} ", args, NULL);
Florian Festi
77efb7
} else {
Florian Festi
77efb7
patchcmd = rpmExpand("%{__patch} ", args, " < ", fn, NULL);
Florian Festi
77efb7
--
Florian Festi
77efb7
2.1.0
Florian Festi
77efb7