xbps-src: doinst-helper: we know exact PATH for chroot case, use it.
This commit is contained in:
parent
005be53337
commit
d7c2cc5513
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue