diff options
author | Ross Burton <ross@openedhand.com> | 2007-08-17 09:50:29 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2007-08-17 09:50:29 +0000 |
commit | 48697516fd3957f354ce69a7737480e6b9983da6 (patch) | |
tree | c573dcc75cb03d2fd3ccc4de97646e0043fe2d24 | |
parent | 9a1a624518890231b2283c38f3a02323cb9e6b29 (diff) | |
download | openembedded-core-48697516fd3957f354ce69a7737480e6b9983da6.tar.gz openembedded-core-48697516fd3957f354ce69a7737480e6b9983da6.tar.bz2 openembedded-core-48697516fd3957f354ce69a7737480e6b9983da6.zip |
Instead of exit 0, do exit 1. 0 is 0, so this doesn't work as intended
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2505 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/classes/rootfs_deb.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 75933883b9..55dad6679a 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass @@ -58,12 +58,12 @@ fakeroot rootfs_deb_do_rootfs () { if [ ! -z "${LINGUAS_INSTALL}" ]; then apt-get install glibc-localedata-i18n --force-yes --allow-unauthenticated if [ $? -ne 0 ]; then - exit $? + exit 1 fi for i in ${LINGUAS_INSTALL}; do apt-get install $i --force-yes --allow-unauthenticated if [ $? -ne 0 ]; then - exit $? + exit 1 fi done fi @@ -71,7 +71,7 @@ fakeroot rootfs_deb_do_rootfs () { if [ ! -z "${PACKAGE_INSTALL}" ]; then for i in ${PACKAGE_INSTALL}; do apt-get install $i --force-yes --allow-unauthenticated - if [ $? -eq 1 ]; then + if [ $? -ne 0 ]; then exit 1 fi find ${IMAGE_ROOTFS} -name \*.dpkg-new | for i in `cat`; do @@ -131,7 +131,7 @@ rootfs_deb_log_check() { echo -e "log_check: Matched keyword: [$keyword_die]\n" echo "$lf_txt" | grep -v log_check | grep -C 5 -i "$keyword_die" echo "" - do_exit=1 + do_exit=1 fi done test "$do_exit" = 1 && exit 1 |