summaryrefslogtreecommitdiffstats
path: root/support/scripts/apply-patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'support/scripts/apply-patches.sh')
-rwxr-xr-xsupport/scripts/apply-patches.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
index 7ccb39dd8f..66fef262ee 100755
--- a/support/scripts/apply-patches.sh
+++ b/support/scripts/apply-patches.sh
@@ -113,6 +113,11 @@ function apply_patch {
echo " to be applied : ${path}/${patch}"
exit 1
fi
+ if grep -q "^rename from" ${path}/${patch} && \
+ grep -q "^rename to" ${path}/${patch} ; then
+ echo "Error: patch contains some renames, not supported by old patch versions"
+ exit 1
+ fi
echo "${path}/${patch}" >> ${builddir}/.applied_patches_list
${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}" -t -N $silent
if [ $? != 0 ] ; then
OpenPOWER on IntegriCloud