xbps-src/build.sh: error out if installing cross pkgs fails for some reason.

This commit is contained in:
Juan RP 2015-04-15 11:38:23 +02:00
parent ed645e3a2f
commit ba814ab5c7

View file

@ -31,8 +31,8 @@ show_pkg_build_options
check_pkg_arch $XBPS_CROSS_BUILD check_pkg_arch $XBPS_CROSS_BUILD
if [ -z "$XBPS_CROSS_PREPARE" ]; then if [ -z "$XBPS_CROSS_PREPARE" ]; then
install_cross_pkg $XBPS_CROSS_BUILD install_cross_pkg $XBPS_CROSS_BUILD || exit $?
prepare_cross_sysroot $XBPS_CROSS_BUILD prepare_cross_sysroot $XBPS_CROSS_BUILD || exit $?
fi fi
# Install dependencies from binary packages # Install dependencies from binary packages
if [ "$PKGNAME" != "$TARGET_PKG" -o -z "$XBPS_SKIP_DEPS" ]; then if [ "$PKGNAME" != "$TARGET_PKG" -o -z "$XBPS_SKIP_DEPS" ]; then