[Buildroot] [PATCH] apply-patches: catch unexpected failure
Romain Naour
romain.naour at gmail.com
Tue Jul 5 11:02:09 UTC 2016
As reported by Sébastien Szymanski [1], the apply-patches script
doesn't stop if a tar command can't extract an archive.
Use "set -e" to exit immediately if a command return an error.
[1] http://patchwork.ozlabs.org/patch/626196
Signed-off-by: Romain Naour <romain.naour at gmail.com>
Cc: Sébastien Szymanski <sebastien.szymanski at armadeus.com>
---
support/scripts/apply-patches.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
index 694302d..11fa5bf 100755
--- a/support/scripts/apply-patches.sh
+++ b/support/scripts/apply-patches.sh
@@ -31,6 +31,9 @@
# applied. The list of the patches applied is stored in '.applied_patches_list'
# file in the build directory.
+# We want to catch any unexpected failure, and exit immediately.
+set -e
+
silent=
if [ "$1" = "-s" ] ; then
# add option to be used by the patch tool
--
2.5.5
More information about the buildroot
mailing list