If the installation of buildtools fails then we should fail the entire
installation instead of blindly continuing on.

Signed-off-by: Paul Eggleton <paul.eggle...@linux.intel.com>
---
 meta/classes/populate_sdk_ext.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/populate_sdk_ext.bbclass 
b/meta/classes/populate_sdk_ext.bbclass
index a824ca4..85bbaa5 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -219,7 +219,7 @@ SDK_PRE_INSTALL_COMMAND_task-populate-sdk-ext = 
"${sdk_ext_preinst}"
 sdk_ext_postinst() {
        printf "\nExtracting buildtools...\n"
        cd $target_sdk_dir
-       printf "buildtools\ny" | ./*buildtools-nativesdk-standalone* > /dev/null
+       printf "buildtools\ny" | ./*buildtools-nativesdk-standalone* > 
/dev/null || ( printf 'ERROR: buildtools installation failed\n' ; exit 1 )
 
        # Make sure when the user sets up the environment, they also get
        # the buildtools-tarball tools in their path.
-- 
2.5.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to