From 44456859998a1184366572117c7b755ca720855e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 30 Mar 2007 14:52:41 +0000 Subject: rootfs_deb: Catch all error codes and return them git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1416 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/classes/rootfs_deb.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'meta/classes/rootfs_deb.bbclass') diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 59909d6852..3cd1d0d04d 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass @@ -53,13 +53,13 @@ fakeroot rootfs_deb_do_rootfs () { if [ ! -z "${LINGUAS_INSTALL}" ]; then apt-get install glibc-localedata-i18n - if [ $? -eq 1 ]; then - exit 1 + if [ $? -ne 0 ]; then + exit $? fi for i in ${LINGUAS_INSTALL}; do apt-get install $i - if [ $? -eq 1 ]; then - exit 1 + if [ $? -ne 0 ]; then + exit $? fi done fi -- cgit v1.2.3-54-g00ecf