xbps-src: doinst-helper: we know exact PATH for chroot case, use it.

This commit is contained in:
Juan RP 2011-11-18 12:02:39 +01:00
parent 005be53337
commit d7c2cc5513
1 changed files with 10 additions and 2 deletions

View File

@ -29,14 +29,22 @@ PKG_TMPLNAME="$1"
if [ -n "${CONFIG_FILE}" -a -r "${CONFIG_FILE}" ]; then
. ${CONFIG_FILE}
else
. @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
if [ -n "$IN_CHROOT" ]; then
. /usr/local/etc/xbps-src.conf
else
. @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
fi
fi
if [ -n "${MASTERDIR}" ]; then
export XBPS_MASTERDIR="${MASTERDIR}"
fi
. @@XBPS_INSTALL_SHAREDIR@@/shutils/init_funcs.sh
if [ -n "$IN_CHROOT" ]; then
. /usr/local/share/xbps-src/shutils/init_funcs.sh
else
. @@XBPS_INSTALL_SHAREDIR@@/shutils/init_funcs.sh
fi
set_defvars