use patch -i instead of IO redirection

Message ID
State Accepted
Commit d1766c2273d1
Headers show

Commit Message

Johannes Stezenbach Oct. 30, 2012, 10:36 a.m.
The 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 <>

For unsubscribe information see


Yann E. MORIN Oct. 31, 2012, 12:09 a.m. | #1
Johannes, All,

Your patch:
    scripts/functions: use patch -i instead of IO redirection

has been applied as: #d1766c2273d1

Thank you!

Yann E. MORIN.

For unsubscribe information see


diff -r 9f6e46b6dc42 scripts/functions
--- a/scripts/functions	Tue Oct 30 00:23:51 2012 +0100
+++ b/scripts/functions	Tue Oct 30 11:24:46 2012 +0100
@@ -1051,7 +1051,7 @@ 
             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}"
             if [ "${CT_PATCH_SINGLE}" = "y" ]; then