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
1 changed files with 2 additions and 2 deletions

View File

@ -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