xbps-src: setup_pkg: re-read conf file to propagate vars to build.sh.

This commit is contained in:
Juan RP 2015-03-23 18:02:45 +01:00
parent 451411ad21
commit 439807df63
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,6 @@ set_build_options() {
return 0 return 0
fi fi
. $XBPS_CONFIG_FILE 2>/dev/null
for f in ${build_options}; do for f in ${build_options}; do
_pkgname=${pkgname//\-/\_} _pkgname=${pkgname//\-/\_}
@ -223,6 +222,8 @@ setup_pkg() {
unset_package_funcs unset_package_funcs
. $XBPS_CONFIG_FILE 2>/dev/null
if [ -n "$cross" ]; then if [ -n "$cross" ]; then
source_file $XBPS_CROSSPFDIR/${cross}.sh source_file $XBPS_CROSSPFDIR/${cross}.sh