From 148f1d5db56b10e06e34b76d2044fbfb40525de2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 14 May 2010 00:16:37 +0200 Subject: [PATCH] xbps-src: reinstall xbps-src any time we are entering into the chroot. --- xbps-src/shutils/chroot.sh.in | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/xbps-src/shutils/chroot.sh.in b/xbps-src/shutils/chroot.sh.in index 523af3f8ae..301f5281bd 100644 --- a/xbps-src/shutils/chroot.sh.in +++ b/xbps-src/shutils/chroot.sh.in @@ -258,13 +258,11 @@ xbps_chroot_handler() fi # Reinstall xbps-src in the chroot - if [ ! -f $XBPS_MASTERDIR/usr/local/sbin/xbps-src ]; then - msg_normal "Installing xbps-src in the masterdir..." - env in_chroot=yes LANG=C PATH=$path \ - ${chroot_cmd} $XBPS_MASTERDIR sh -c \ - "cd /xbps/xbps-src && make IN_CHROOT=1 install clean" \ - 2>&1 >/dev/null || return $? - fi + msg_normal "Installing xbps-src in the masterdir..." + env in_chroot=yes LANG=C PATH=$path \ + ${chroot_cmd} $XBPS_MASTERDIR sh -c \ + "cd /xbps/xbps-src && make IN_CHROOT=1 install clean" \ + 2>&1 >/dev/null || return $? if [ "$action" = "chroot" ]; then env in_chroot=yes IN_CHROOT=1 LANG=C PATH=$path \