xbps-src: recompute XBPS_MASTERDIR and XBPS_HOSTDIR in chroot stage
This commit is contained in:
parent
4137b27d81
commit
c15d85987f
1 changed files with 3 additions and 0 deletions
3
xbps-src
3
xbps-src
|
@ -490,6 +490,9 @@ readonly XBPS_GIT_CMD
|
||||||
if [ -n "$IN_CHROOT" ]; then
|
if [ -n "$IN_CHROOT" ]; then
|
||||||
readonly XBPS_CONFIG_FILE=/etc/xbps/xbps-src.conf
|
readonly XBPS_CONFIG_FILE=/etc/xbps/xbps-src.conf
|
||||||
readonly XBPS_DISTDIR=/void-packages
|
readonly XBPS_DISTDIR=/void-packages
|
||||||
|
# needed before call to check_config_vars
|
||||||
|
readonly XBPS_MASTERDIR=/
|
||||||
|
readonly XBPS_HOSTDIR=/host
|
||||||
else
|
else
|
||||||
_distdir="$(readlink -f ${0%/*})"
|
_distdir="$(readlink -f ${0%/*})"
|
||||||
if [ "${_distdir}" = "." ]; then
|
if [ "${_distdir}" = "." ]; then
|
||||||
|
|
Loading…
Reference in a new issue