xbps-src: run pre-install hooks for subpkgs too.

The pre-install hooks are run before pkg_install().
This commit is contained in:
Juan RP 2015-01-14 11:30:49 +01:00
parent 0e42bf442e
commit 5f63a3cf4f
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ if [ ! -f $XBPS_SUBPKG_INSTALL_DONE ]; then
install -d $PKGDESTDIR
if declare -f pkg_install >/dev/null; then
run_pkg_hooks pre-install
export XBPS_PKGDESTDIR=1
run_func pkg_install
fi