[PATCH 4/8] image.bbclass: add a proper error message if hook script fails

Laurentiu Palcu
2013-02-05T09:51:05Z

meta/classes/image.bbclass | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 9b4dec8..5cbf73a 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -10,6 +10,7 @@ inherit gzipnative

LICENSE = "MIT"
PACKAGES = ""
+DEPENDS += "qemuwrapper-cross"
RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${NORMAL_FEATURE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL}"
RRECOMMENDS += "${NORMAL_FEATURE_INSTALL_OPTIONAL}"

@@ -197,6 +198,9 @@ run_intercept_scriptlets () {
echo "> Executing $script"
chmod +x $script
./$script
+ if [ $? -ne 0 ]; then
+ echo "ERROR: intercept script \"$script\" failed!"
+ fi
done
fi
}
--
1.7.9.5