xbps-src: repair running post-install hooks.
This commit is contained in:
parent
8be4aa7244
commit
782f331b10
1 changed files with 7 additions and 6 deletions
|
@ -74,10 +74,11 @@ if [ ! -f $XBPS_INSTALL_DONE ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
XBPS_SUBPKG_INSTALL_DONE="$wrksrc/.xbps_${XBPS_CROSS_BUILD}_${PKGNAME}_install_done"
|
||||||
|
|
||||||
# If it's a subpkg execute the pkg_install() function.
|
# If it's a subpkg execute the pkg_install() function.
|
||||||
if [ "$sourcepkg" != "$PKGNAME" ]; then
|
if [ ! -f $XBPS_SUBPKG_INSTALL_DONE ]; then
|
||||||
XBPS_SUBPKG_INSTALL_DONE="$wrksrc/.xbps_${XBPS_CROSS_BUILD}_${PKGNAME}_install_done"
|
if [ "$sourcepkg" != "$PKGNAME" ]; then
|
||||||
if [ ! -f $XBPS_SUBPKG_INSTALL_DONE ]; then
|
|
||||||
# Source all subpkg environment setup snippets.
|
# Source all subpkg environment setup snippets.
|
||||||
for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do
|
for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do
|
||||||
source_file "$f"
|
source_file "$f"
|
||||||
|
@ -90,10 +91,10 @@ if [ "$sourcepkg" != "$PKGNAME" ]; then
|
||||||
export XBPS_PKGDESTDIR=1
|
export XBPS_PKGDESTDIR=1
|
||||||
run_func pkg_install
|
run_func pkg_install
|
||||||
fi
|
fi
|
||||||
setup_pkg_depends $pkgname
|
|
||||||
run_pkg_hooks post-install
|
|
||||||
touch -f $XBPS_SUBPKG_INSTALL_DONE
|
|
||||||
fi
|
fi
|
||||||
|
setup_pkg_depends ${pkgname:=$PKGNAME}
|
||||||
|
run_pkg_hooks post-install
|
||||||
|
touch -f $XBPS_SUBPKG_INSTALL_DONE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue