From 66d47f861614090b3b11e154b25c202bf5ffb3c1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 9 Jul 2011 15:08:41 +0200 Subject: [PATCH] xbps-src: respect XBPS_HOSTDIR for XBPS_SRCDISTDIR. --- xbps-src/shutils/init_funcs.sh.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xbps-src/shutils/init_funcs.sh.in b/xbps-src/shutils/init_funcs.sh.in index ceee611b1a4..bcb8c8da95e 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"