The branch stable/15 has been updated by cperciva:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8b4585444728ca241d09cd230a3b8e27e3954847

commit 8b4585444728ca241d09cd230a3b8e27e3954847
Author:     Mark Johnston <[email protected]>
AuthorDate: 2025-10-22 23:14:35 +0000
Commit:     Colin Percival <[email protected]>
CommitDate: 2025-10-23 23:36:09 +0000

    packages: Update the METALOG when (un)installing the caroot package
    
    There may be other issues here but this change certainly seems to
    be necessary.
    
    PR:     290394
    Reviewed by:    cperciva
    Differential Revision:  https://reviews.freebsd.org/D53263
    
    (cherry picked from commit fa240b7ff081a49d44e0941b2090e5dc5838fe60)
---
 release/packages/ucl/caroot.ucl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/release/packages/ucl/caroot.ucl b/release/packages/ucl/caroot.ucl
index e43c9d0771f2..f7d0dd8acb7f 100644
--- a/release/packages/ucl/caroot.ucl
+++ b/release/packages/ucl/caroot.ucl
@@ -4,6 +4,6 @@ deps {
        }
 }
 scripts: {
-       post-install = "/usr/sbin/certctl -D${PKG_ROOTDIR}/ rehash"
-       post-uninstall = "/usr/sbin/certctl -D${PKG_ROOTDIR}/ rehash"
+       post-install = "/usr/sbin/certctl -D${PKG_ROOTDIR}/ ${PKG_METALOG:+-U 
-M $PKG_METALOG} rehash"
+       post-uninstall = "/usr/sbin/certctl -D${PKG_ROOTDIR}/ ${PKG_METALOG:+-U 
-M $PKG_METALOG} rehash"
 }

Reply via email to