xbps-src: set_defvars: we know exact PATH for chroot case, use it.

This commit is contained in:
Juan RP 2011-11-18 11:47:24 +01:00
parent a88d12346d
commit b1210b9934
1 changed files with 7 additions and 3 deletions

View File

@ -27,16 +27,20 @@ set_defvars()
{
local DDIRS i
XBPS_HELPERSDIR=@@XBPS_INSTALL_SHAREDIR@@/helpers
XBPS_SHUTILSDIR=@@XBPS_INSTALL_SHAREDIR@@/shutils
XBPS_COMMONVARSDIR=@@XBPS_INSTALL_SHAREDIR@@/common
XBPS_META_PATH=$XBPS_MASTERDIR/var/db/xbps
XBPS_PKGMETADIR=$XBPS_META_PATH/metadata
XBPS_SRCPKGDIR=$XBPS_DISTRIBUTIONDIR/srcpkgs
if [ -n "$IN_CHROOT" ]; then
XBPS_HELPERSDIR=/usr/local/share/xbps-src/helpers
XBPS_SHUTILSDIR=/usr/local/share/xbps-src/shutils
XBPS_COMMONVARSDIR=/usr/local/share/xbps-src/common
XBPS_DESTDIR=/destdir
XBPS_BUILDDIR=/builddir
else
XBPS_HELPERSDIR=@@XBPS_INSTALL_SHAREDIR@@/helpers
XBPS_SHUTILSDIR=@@XBPS_INSTALL_SHAREDIR@@/shutils
XBPS_COMMONVARSDIR=@@XBPS_INSTALL_SHAREDIR@@/common
XBPS_DESTDIR=$XBPS_MASTERDIR/destdir
XBPS_BUILDDIR=$XBPS_MASTERDIR/builddir
fi