From 67a8a6470ddb8a603db02c5fab84aa225dc00f8d Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 24 May 2024 13:42:11 +0200 Subject: solver3: Implement APT::Solver::RemoveManual to allow removing manual packages This is mostly going to be useful for the test suite for now, implement a function there to set it up so we can use it to improve test suite correctness. --- test/integration/framework | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/integration/framework') diff --git a/test/integration/framework b/test/integration/framework index d2ab0d1cd..ecf5d8703 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -585,6 +585,9 @@ EOF # prefer our apt binaries over the system apt binaries export PATH="${APTCMDLINEBINDIR}:${PATH}:/usr/sbin:/sbin" } +allowremovemanual() { + echo 'APT::Solver::RemoveManual "true";' >> ${TMPWORKINGDIRECTORY}/rootdir/etc/apt/apt.conf.d/allow-remove-manual.conf +} getarchitecture() { if [ "$1" = "native" -o -z "$1" ]; then -- cgit v1.2.3-70-g09d2