xbps-src-doinst-helper is run via fakeroot so set build vars before and after!

This commit is contained in:
Juan RP 2010-05-10 11:17:58 +02:00
parent 823f820827
commit 2850e6ed79
2 changed files with 2 additions and 6 deletions

View file

@ -96,11 +96,13 @@ install_pkg()
fi
# Install pkg into destdir.
set_build_vars
env xbps_machine=${xbps_machine} MASTERDIR=${_MASTERDIR} \
dontrm_builddir=${dontrm_builddir} \
${fakeroot_cmd} ${fakeroot_cmd_args} \
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-doinst-helper \
${curpkgn} || return $?
unset_build_vars
# Always write metadata to package's destdir.
. $XBPS_SHUTILSDIR/metadata.sh