aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/rootfs_deb.bbclass8
1 files changed, 4 insertions, 4 deletions
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