From ffbd0ad5aebd478981726c877f9b8e70dacdebc2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 24 Oct 2008 10:09:42 +0200 Subject: [PATCH] Reread config file and set vars in the chroot to get correct paths! --HG-- extra : convert_revision : dbc4e06cf93ef92d12090a53be4270d720c88f9f --- xbps.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xbps.sh b/xbps.sh index 48d97d625b0..2328c4f8c2a 100755 --- a/xbps.sh +++ b/xbps.sh @@ -1162,6 +1162,15 @@ install_pkg() exit 1 fi + # + # If we are being invoked via install-chroot, reread config file + # to get correct stuff. + # + if [ "$XBPS_MASTERDIR" = "/" ]; then + check_config_vars + set_defvars + fi + reset_tmpl_vars run_file $cur_tmpl pkg="$curpkgn-$version"