xbps-src: make 'bootstrap' target more reliable.

- Ignore additional arguments, i.e './xbps-src bootstrap -j2'.
- Do not sync remote repos.
This commit is contained in:
Juan RP 2015-05-05 11:52:17 +02:00
parent 57365d7b1b
commit 3de7c66fbf

View file

@ -257,6 +257,10 @@ check_build_requirements() {
install_bbootstrap() {
[ -n "$CHROOT_READY" ] && return
if [ -n "$1" ]; then
unset XBPS_TARGET_PKG
unset XBPS_INSTALL_ARGS
fi
# binary bootstrap
msg_normal "Installing bootstrap from binary package repositories...\n"
# XBPS_TARGET_PKG == arch
@ -461,7 +465,7 @@ readonly XBPS_CMPVER_CMD="xbps-uhelper cmpver"
readonly XBPS_TARGET="$1"
if [ -n "$2" ]; then
readonly XBPS_TARGET_PKG="${2##*/}"
XBPS_TARGET_PKG="${2##*/}"
fi
# Check if stdout is a tty; if false disable colors.
@ -575,7 +579,7 @@ case "$XBPS_TARGET" in
fi
$XBPS_LIBEXECDIR/build.sh base-chroot base-chroot $XBPS_TARGET || exit 1
[ -d $XBPS_MASTERDIR ] && rm -rf $XBPS_MASTERDIR
install_bbootstrap
install_bbootstrap bootstrap
;;
bootstrap-update)
bootstrap_update