diff --git a/xbps-src/shutils/init_funcs.sh.in b/xbps-src/shutils/init_funcs.sh.in index ceee611b1a..bcb8c8da95 100644 --- a/xbps-src/shutils/init_funcs.sh.in +++ b/xbps-src/shutils/init_funcs.sh.in @@ -42,12 +42,13 @@ set_defvars() : ${XBPS_DESTDIR:=$XBPS_MASTERDIR/destdir} fi if [ -n "$XBPS_HOSTDIR" ]; then - : ${XBPS_PACKAGESDIR=$XBPS_HOSTDIR/binpkgs} + : ${XBPS_PACKAGESDIR:=$XBPS_HOSTDIR/binpkgs} + : ${XBPS_SRCDISTDIR:=$XBPS_HOSTDIR/sources} else + : ${XBPS_SRCDISTDIR:=$XBPS_MASTERDIR/host/sources} : ${XBPS_PACKAGESDIR:=$XBPS_MASTERDIR/host/binpkgs} fi : ${XBPS_BUILDDIR:=$XBPS_MASTERDIR/builddir} - : ${XBPS_SRCDISTDIR:=$XBPS_MASTERDIR/host/sources} : ${XBPS_TRIGGERSDIR:=$XBPS_SRCPKGDIR/xbps-triggers/files} DDIRS="TRIGGERSDIR HELPERSDIR SRCPKGDIR COMMONVARSDIR SHUTILSDIR"