xbps-src: use XBPS_HOSTDIR/binpkgs to store binpkgs if set.

This commit is contained in:
Juan RP 2011-07-08 02:51:28 +02:00
parent 2b9aec22ea
commit 5715fb6eb8
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ set_defvars()
else
: ${XBPS_DESTDIR:=$XBPS_MASTERDIR/destdir}
fi
: ${XBPS_PACKAGESDIR:=$XBPS_MASTERDIR/host/binpkgs}
if [ -n "$XBPS_HOSTDIR" ]; then
: ${XBPS_PACKAGESDIR=$XBPS_HOSTDIR/binpkgs}
else
: ${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}