xbps-src: respect XBPS_HOSTDIR for XBPS_SRCDISTDIR.

This commit is contained in:
Juan RP 2011-07-09 15:08:41 +02:00
parent 11d8ed9c19
commit 66d47f8616
1 changed files with 3 additions and 2 deletions

View File

@ -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"