xbps-src: always create logs for configure/build/install stages in $wrksrc.

Fixed -C and install-destdir in the chroot, $# wasn't consistent :-)
This commit is contained in:
Juan RP 2010-05-07 12:25:24 +02:00
parent 9615930eb4
commit 22774084ab
7 changed files with 62 additions and 56 deletions

View file

@ -277,11 +277,13 @@ install|install-destdir)
[ ! -r ./template ] && msg_error "missing build template file."
. ./template
install_destdir_target=no
[ "$target" = "install-destdir" ] && install_destdir_target=yes
[ -z "$dontrm_builddir" ] && dontrm_builddir=no
if [ -z "$in_chroot" -a -z "$base_chroot" ]; then
. $XBPS_SHUTILSDIR/chroot.sh
xbps_chroot_handler install $(basename_cwd) \
$install_destdir_target $dontrm_builddir
xbps_chroot_handler $target $(basename_cwd) $dontrm_builddir
else
. $XBPS_SHUTILSDIR/pkgtarget_funcs.sh
setup_tmpl $(basename_cwd)