diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-07-04 10:08:40 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-07-07 10:54:44 +0000 |
commit | 0c28379c6d8ab33f3c902b6617503ca634b8c90e (patch) | |
tree | 24ecfe7570e124998a563dea4437073464d500ea /meta-app-framework/classes | |
parent | 7f54d0b928d5d29e2a36635b2d40784d022aad61 (diff) |
Handle error during run-agl-postinsts
* do not remove post install script if failed
Bug-AGL: SPEC-700
Change-Id: I1b45670ecbe3915a69cfa659031ac877eb794571
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10025
Reviewed-by: José Bollo <jobol@nonadev.net>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-app-framework/classes')
-rw-r--r-- | meta-app-framework/classes/aglwgt.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-app-framework/classes/aglwgt.bbclass b/meta-app-framework/classes/aglwgt.bbclass index afe9a5516..37638e666 100644 --- a/meta-app-framework/classes/aglwgt.bbclass +++ b/meta-app-framework/classes/aglwgt.bbclass @@ -46,11 +46,17 @@ do_aglwgt_deploy() { install -d ${D}/${sysconfdir}/agl-postinsts cat > ${D}/${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT} <<EOF #!/bin/sh -e +INSTALL_RESULT=0 for file in ${APP_FILES}; do /usr/bin/afm-install install /usr/AGL/apps/\$file + if [ $? -ne 0 ]; then + echo "Application \$file failed to install" + INSTALL_RESULT=1 + fi done sync ${EXTRA_WGT_POSTINSTALL} +exit $INSTALL_RESULT EOF chmod a+x ${D}/${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT} } |