From b56de2621b17b9db924a159dbf138dc4315f0c60 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Mon, 3 Feb 2025 22:45:10 +0100 Subject: [PATCH] xbps-src: re-run post-install hooks if -f flag is used --- common/xbps-src/libexec/xbps-src-doinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/libexec/xbps-src-doinstall.sh b/common/xbps-src/libexec/xbps-src-doinstall.sh index fb5d35d1a59..690cf8ae0e7 100755 --- a/common/xbps-src/libexec/xbps-src-doinstall.sh +++ b/common/xbps-src/libexec/xbps-src-doinstall.sh @@ -44,7 +44,7 @@ fi XBPS_SUBPKG_INSTALL_DONE="${XBPS_STATEDIR}/${PKGNAME}_${XBPS_CROSS_BUILD}_subpkg_install_done" # If it's a subpkg execute the pkg_install() function. -if [ ! -f $XBPS_SUBPKG_INSTALL_DONE ]; then +if [ ! -f $XBPS_SUBPKG_INSTALL_DONE -o -n "$XBPS_BUILD_FORCEMODE" ]; then if [ "$sourcepkg" != "$PKGNAME" ]; then # Source all subpkg environment setup snippets. for f in ${XBPS_COMMONDIR}/environment/setup-subpkg/*.sh; do