Code Review
/
AGL
/
meta-agl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Handle error during run-agl-postinsts
[AGL/meta-agl.git]
/
meta-app-framework
/
classes
/
aglwgt.bbclass
diff --git
a/meta-app-framework/classes/aglwgt.bbclass
b/meta-app-framework/classes/aglwgt.bbclass
index
afe9a55
..
37638e6
100644
(file)
--- 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 -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
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}
done
sync
${EXTRA_WGT_POSTINSTALL}
+exit $INSTALL_RESULT
EOF
chmod a+x ${D}/${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT}
}
EOF
chmod a+x ${D}/${sysconfdir}/agl-postinsts/${POST_INSTALL_SCRIPT}
}