From b257ba41fc7fc3117d91c2a3a9e44ba267320442 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 21 Oct 2010 17:21:23 +0200 Subject: [PATCH] xbps-src: do not overwrite PATH, just append it to the new one. --- xbps-src/xbps-src.sh.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xbps-src/xbps-src.sh.in b/xbps-src/xbps-src.sh.in index 9795196473..b8db9dea00 100644 --- a/xbps-src/xbps-src.sh.in +++ b/xbps-src/xbps-src.sh.in @@ -255,8 +255,7 @@ fi # if [ -z "$in_chroot" ]; then # In non chroot case always prefer host tools. - MYPATH="/bin:/usr/bin:/sbin:/usr/sbin:$MYPATH" - MYPATH="$XBPS_MASTERDIR/bin:$XBPS_MASTERDIR/usr/bin:$MYPATH" + MYPATH="$XBPS_MASTERDIR/bin:$XBPS_MASTERDIR/usr/bin:$PATH" MYPATH="$XBPS_MASTERDIR/usr/local/bin:$MYPATH" MYPATH="$XBPS_MASTERDIR/usr/local/sbin:$MYPATH" else