Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137944679
D53543.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
D53543.id.diff
View Options
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -212,6 +212,13 @@
-r ${DESTDIR} \
install -y -r ${PKG_REPO_NAME} $pkg
done
+ INSTALL_AS_USER=yes \
+ ${PKG_CMD} \
+ -o ABI=${PKG_ABI} \
+ -o REPOS_DIR=${PKG_REPOS_DIR} \
+ -o PKG_DBDIR=${DESTDIR}/var/db/pkg \
+ -r ${DESTDIR} \
+ autoremove
metalog_add_data ./var/db/pkg/local.sqlite
else
if [ -n "${WITHOUT_QEMU}" ]; then
@@ -224,6 +231,8 @@
chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \
/usr/sbin/pkg install -y ${p}
done
+ chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \
+ /usr/sbin/pkg autoremove
fi
return 0
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 28, 1:09 PM (5 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24726371
Default Alt Text
D53543.id.diff (751 B)
Attached To
Mode
D53543: vmimage.subr: pkg autoremove after pkg install
Attached
Detach File
Event Timeline
Log In to Comment