diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2024-05-24 13:42:11 +0200 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-05-24 13:43:56 +0200 |
| commit | 67a8a6470ddb8a603db02c5fab84aa225dc00f8d (patch) | |
| tree | bf3dd748f531b5be164ae8bbe4ac018383793db6 /test/integration | |
| parent | 4fc6affafafda1aee4cee86294ce7a2b799e2799 (diff) | |
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.
Diffstat (limited to 'test/integration')
| -rw-r--r-- | test/integration/framework | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
