xbps-src/doinstall: touch install state file after running post-install too.

This commit is contained in:
Juan RP 2015-09-27 18:51:58 +02:00
parent 68701cf6ca
commit e4fdd38304

View file

@ -37,6 +37,7 @@ if [ "$SUBPKG_MODE" = "no" ]; then
if [ ! -f $XBPS_INSTALL_DONE ] || [ -f $XBPS_INSTALL_DONE -a -n "$XBPS_BUILD_FORCEMODE" ]; then if [ ! -f $XBPS_INSTALL_DONE ] || [ -f $XBPS_INSTALL_DONE -a -n "$XBPS_BUILD_FORCEMODE" ]; then
mkdir -p $XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/$pkgname-$version mkdir -p $XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/$pkgname-$version
# Run pre-install hooks
run_pkg_hooks pre-install run_pkg_hooks pre-install
# Run pre_install() # Run pre_install()
@ -56,14 +57,14 @@ if [ "$SUBPKG_MODE" = "no" ]; then
. $XBPS_BUILDSTYLEDIR/${build_style}.sh . $XBPS_BUILDSTYLEDIR/${build_style}.sh
run_func do_install run_func do_install
fi fi
touch -f $XBPS_INSTALL_DONE
# Run post_install() # Run post_install()
cd "$wrksrc" cd "$wrksrc"
[ -n "$build_wrksrc" ] && cd $build_wrksrc [ -n "$build_wrksrc" ] && cd $build_wrksrc
if declare -f post_install >/dev/null; then if declare -f post_install >/dev/null; then
run_func post_install run_func post_install
fi fi
touch -f $XBPS_INSTALL_DONE
fi fi
exit 0 exit 0
fi fi