From b33c6c36373f47b4c7490b0b6731233c1dc1ff05 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 4 Feb 2025 09:05:28 +0100 Subject: solver3: Cache all configuration calls --- apt-pkg/solver3.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apt-pkg/solver3.h') diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h index 2868616de..2e5c5ca13 100644 --- a/apt-pkg/solver3.h +++ b/apt-pkg/solver3.h @@ -160,12 +160,18 @@ class Solver int debug{_config->FindI("Debug::APT::Solver")}; // \brief If set, we try to keep automatically installed packages installed. bool KeepAuto{not _config->FindB("APT::Get::AutomaticRemove")}; + // \brief Determines if we are in upgrade mode. + bool IsUpgrade{_config->FindB("APT::Solver::Upgrade", false)}; // \brief If set, removals are allowed. bool AllowRemove{_config->FindB("APT::Solver::Remove", true)}; + // \brief If set, removal of manual packages is allowed. + bool AllowRemoveManual{AllowRemove && _config->FindB("APT::Solver::RemoveManual", false)}; // \brief If set, installs are allowed. bool AllowInstall{_config->FindB("APT::Solver::Install", true)}; // \brief If set, we use strict pinning. bool StrictPinning{_config->FindB("APT::Solver::Strict-Pinning", true)}; + // \brief If set, we install missing recommends and pick new best packages. + bool FixPolicyBroken{_config->FindB("APT::Get::Fix-Policy-Broken")}; // \brief Enqueue dependencies shared by all versions of the package. [[nodiscard]] bool EnqueueCommonDependencies(pkgCache::PkgIterator Pkg); -- cgit v1.2.3-70-g09d2