summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorJohannes Stezenbach <js@sig21.net>2012-10-30 00:36:20 (GMT)
committerJohannes Stezenbach <js@sig21.net>2012-10-30 00:36:20 (GMT)
commit34a6501a2e79ef7a740171fddf6ccae916a12b1d (patch)
tree06ae35f4f4719ef85a21ed1b3f3593c72c387707 /scripts/functions
parentde0ef330c3739835e7dcf4da67444dcc463cee61 (diff)
scripts/functions: use patch -i instead of IO redirection
This makes the patch name show up on the command line logged by CT_DoExecLog so it's easier to see what is going on. The -i for patch is specified by Posix and supported by GNU patch and busybox patch. Signed-off-by: Johannes Stezenbach <js@sig21.net> [yann.morin.1998@free.fr: remove now-useless debug message] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <20121030103620.GB8303@sig21.net> Patchwork-Id: 195418
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index 7983f47..028af3f 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -1050,8 +1050,7 @@ CT_Patch() {
if [ -n "${d}" -a -d "${d}" ]; then
for p in "${d}"/*.patch; do
if [ -f "${p}" ]; then
- CT_DoLog DEBUG "Applying patch '${p}'"
- CT_DoExecLog ALL patch --no-backup-if-mismatch -g0 -F1 -p1 -f <"${p}"
+ CT_DoExecLog ALL patch --no-backup-if-mismatch -g0 -F1 -p1 -f -i "${p}"
fi
done
if [ "${CT_PATCH_SINGLE}" = "y" ]; then