]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/populate_sdk_ext: error out of install if buildtools install fails
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 22 Dec 2015 03:19:17 +0000 (16:19 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jan 2016 15:41:31 +0000 (15:41 +0000)
If the installation of buildtools fails then we should fail the entire
installation instead of blindly continuing on.

(From OE-Core master rev: 34bb63e6c72fb862e0ef0d2b26e1bfddaf7ddb99)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_ext.bbclass

index 8601c78410fd24fc30a12be485c852addfd8db8a..f5597f4782601cb1b2108e7458bbb00b53441bbc 100644 (file)
@@ -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.