xbps-src: reinstall xbps-src any time we are entering into the chroot.

This commit is contained in:
Juan RP 2010-05-14 00:16:37 +02:00
parent ceefb18bff
commit 148f1d5db5

View file

@ -258,13 +258,11 @@ xbps_chroot_handler()
fi fi
# Reinstall xbps-src in the chroot # Reinstall xbps-src in the chroot
if [ ! -f $XBPS_MASTERDIR/usr/local/sbin/xbps-src ]; then
msg_normal "Installing xbps-src in the masterdir..." msg_normal "Installing xbps-src in the masterdir..."
env in_chroot=yes LANG=C PATH=$path \ env in_chroot=yes LANG=C PATH=$path \
${chroot_cmd} $XBPS_MASTERDIR sh -c \ ${chroot_cmd} $XBPS_MASTERDIR sh -c \
"cd /xbps/xbps-src && make IN_CHROOT=1 install clean" \ "cd /xbps/xbps-src && make IN_CHROOT=1 install clean" \
2>&1 >/dev/null || return $? 2>&1 >/dev/null || return $?
fi
if [ "$action" = "chroot" ]; then if [ "$action" = "chroot" ]; then
env in_chroot=yes IN_CHROOT=1 LANG=C PATH=$path \ env in_chroot=yes IN_CHROOT=1 LANG=C PATH=$path \