From ff700d0a404d1b1cc17ea34c541f67c36bc81999 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 14 Apr 2014 19:58:32 +0200 Subject: [PATCH] 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. --- common/xbps-src/shutils/chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 65c3225afcf..925c3e3341a 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -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