From ba814ab5c74b896d03fd26505dbe4aa49fc74c82 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 15 Apr 2015 11:38:23 +0200 Subject: [PATCH] xbps-src/build.sh: error out if installing cross pkgs fails for some reason. --- common/xbps-src/libexec/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/libexec/build.sh b/common/xbps-src/libexec/build.sh index 2a195071d0..b71e1c0bfe 100755 --- a/common/xbps-src/libexec/build.sh +++ b/common/xbps-src/libexec/build.sh @@ -31,8 +31,8 @@ show_pkg_build_options check_pkg_arch $XBPS_CROSS_BUILD if [ -z "$XBPS_CROSS_PREPARE" ]; then - install_cross_pkg $XBPS_CROSS_BUILD - prepare_cross_sysroot $XBPS_CROSS_BUILD + install_cross_pkg $XBPS_CROSS_BUILD || exit $? + prepare_cross_sysroot $XBPS_CROSS_BUILD || exit $? fi # Install dependencies from binary packages if [ "$PKGNAME" != "$TARGET_PKG" -o -z "$XBPS_SKIP_DEPS" ]; then