xbps-src: repair build/configure targets in chroot.

--HG--
extra : convert_revision : b4a21b4621d0114a22eaf686a60896f3f088a69e
This commit is contained in:
Juan RP 2010-02-19 07:18:22 +01:00
parent 371b5c4314
commit 9d29d2d001

View file

@ -175,12 +175,14 @@ fi
case "$target" in
build|configure)
. $XBPS_SHUTILSDIR/tmpl_funcs.sh
setup_tmpl $(basename_cwd)
[ ! -r ./template ] && msg_error "missing build template file."
. ./template
if [ -z "$base_chroot" -a -z "$in_chroot" ]; then
. $XBPS_SHUTILSDIR/chroot.sh
xbps_chroot_handler $target $pkgname
xbps_chroot_handler $target $(basename_cwd)
else
setup_tmpl $(basename_cwd)
. $XBPS_SHUTILSDIR/fetch_funcs.sh
fetch_distfiles
if [ ! -f "$XBPS_EXTRACT_DONE" ]; then