xbps-src/shutils/chroot: use existing PATH when entering xbps-src cmds.

... otherwise xbps-uchroot might not be found when it's in an uncommon path.
This commit is contained in:
Juan RP 2014-04-14 19:58:32 +02:00
parent f3ccf835e2
commit ff700d0a40

View file

@ -195,7 +195,7 @@ chroot_handler() {
[ -n "$XBPS_ALT_REPOSITORY" ] && arg="$arg -r $XBPS_ALT_REPOSITORY"
action="$arg $action"
env -i PATH=/bin:/sbin:/usr/bin:/usr/sbin HOME=/tmp IN_CHROOT=1 LANG=en_US.UTF-8 \
env -i PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH HOME=/tmp IN_CHROOT=1 LANG=en_US.UTF-8 \
$CHROOT_CMD ${_chargs} $XBPS_MASTERDIR /xbps-packages/xbps-src $action $pkg || rv=$?
fi