From 3de7c66fbfdd2e502cdf945145f189d6aa795a51 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 5 May 2015 11:52:17 +0200 Subject: [PATCH] xbps-src: make 'bootstrap' target more reliable. - Ignore additional arguments, i.e './xbps-src bootstrap -j2'. - Do not sync remote repos. --- xbps-src | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xbps-src b/xbps-src index db6d926328e..96b473f1b30 100755 --- a/xbps-src +++ b/xbps-src @@ -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