xbps-src: re-run post-install hooks if -f flag is used

This commit is contained in:
Duncaen 2025-02-03 22:45:10 +01:00
parent 17ea3edfef
commit b56de2621b
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -44,7 +44,7 @@ fi
XBPS_SUBPKG_INSTALL_DONE="${XBPS_STATEDIR}/${PKGNAME}_${XBPS_CROSS_BUILD}_subpkg_install_done" XBPS_SUBPKG_INSTALL_DONE="${XBPS_STATEDIR}/${PKGNAME}_${XBPS_CROSS_BUILD}_subpkg_install_done"
# If it's a subpkg execute the pkg_install() function. # 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 if [ "$sourcepkg" != "$PKGNAME" ]; 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