The branch main has been updated by cperciva:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=509dfd369046ee45b724d119c9eed43228fbb894

commit 509dfd369046ee45b724d119c9eed43228fbb894
Author:     Colin Percival <[email protected]>
AuthorDate: 2025-11-16 00:39:58 +0000
Commit:     Colin Percival <[email protected]>
CommitDate: 2025-11-16 00:39:58 +0000

    vmimage.subr: autoremove -y
    
    Running 'pkg autoremove' without -y results in VM image builds failing
    when (bogusly installed) packages are removed.
    
    Fixes:  6a13aeac3c1f ("vmimage.subr: pkg autoremove after pkg install")
    MFC after:      immediately (needed for 15.0-RC1)
---
 release/tools/vmimage.subr | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 3455f11d9794..7035b107ae22 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -223,7 +223,7 @@ vm_extra_install_packages() {
                    -o REPOS_DIR=${PKG_REPOS_DIR} \
                    -o PKG_DBDIR=${DESTDIR}/var/db/pkg \
                    -r ${DESTDIR} \
-                   autoremove
+                   autoremove -y
                if [ -n "${NOPKGBASE}" ]; then
                        metalog_add_data ./var/db/pkg/local.sqlite
                fi
@@ -239,7 +239,7 @@ vm_extra_install_packages() {
                                /usr/sbin/pkg install -y ${p}
                done
                chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \
-                   /usr/sbin/pkg autoremove
+                   /usr/sbin/pkg autoremove -y
        fi
 
        return 0

Reply via email to