xbps-src: repair bootstrap-update in the !chroot case.

This commit is contained in:
Juan RP 2015-04-09 19:45:59 +02:00
parent 5214ac2e8f
commit e2e7b10b0d
2 changed files with 4 additions and 9 deletions

View File

@ -49,14 +49,9 @@ remove_pkg_autodeps() {
msg_normal "${pkgver:-xbps-src}: removing autodeps, please wait...\n"
tmplogf=$(mktemp)
if [ -z "$CHROOT_READY" ]; then
xbps-reconfigure -r $XBPS_MASTERDIR -a >> $tmplogf 2>&1
xbps-remove -r $XBPS_MASTERDIR -Ryo >> $tmplogf 2>&1
else
remove_pkg_cross_deps
xbps-reconfigure -a >> $tmplogf 2>&1
xbps-remove -Ryo >> $tmplogf 2>&1
fi
remove_pkg_cross_deps
$XBPS_RECONFIGURE_CMD -a >> $tmplogf 2>&1
$XBPS_REMOVE_CMD -Ryo >> $tmplogf 2>&1
if [ $? -ne 0 ]; then
msg_red "${pkgver:-xbps-src}: failed to remove autodeps:\n"

View File

@ -294,7 +294,7 @@ install_bbootstrap() {
}
bootstrap_update() {
if [ -z "$CHROOT_READY" -o -z "$IN_CHROOT" ]; then
if [ -z "$CHROOT_READY" ]; then
return
fi
remove_pkg_autodeps