xbps-src: read specified config file in doinst-helper, if set.

This commit is contained in:
Juan RP 2011-10-30 08:57:24 +01:00
parent 66c78b3ddc
commit 5dc6d62e3e
2 changed files with 6 additions and 1 deletions

View file

@ -26,7 +26,11 @@
PKG_TMPLNAME="$1"
. @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
if [ -n "${CONFIG_FILE}" -a -r "${CONFIG_FILE}" ]; then
. ${CONFIG_FILE}
else
. @@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
fi
if [ -n "${MASTERDIR}" ]; then
export XBPS_MASTERDIR="${MASTERDIR}"