From 4a71fbb426f36c096cb0f3cf24efa57fa703f4c5 Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 13 Dec 2016 17:23:19 +0100 Subject: [PATCH] ENH: retain backup copies when patching files - allows the user to inspect what has been patched. - also use fuzzy patching (ignore whitespace) for a bit more robustness --- etc/tools/ThirdPartyFunctions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/tools/ThirdPartyFunctions b/etc/tools/ThirdPartyFunctions index b7d9c1e..e2fd201 100644 --- a/etc/tools/ThirdPartyFunctions +++ b/etc/tools/ThirdPartyFunctions @@ -325,7 +325,7 @@ applyPatch() else echo "apply patch for $pkg" touch "$sentinel" - patch -p1 < $patch 2>&1 | tee $sentinel + patch -b -l -p1 < $patch 2>&1 | tee $sentinel fi ) else