diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-04 09:05:28 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-07 20:59:43 +0100 |
| commit | b33c6c36373f47b4c7490b0b6731233c1dc1ff05 (patch) | |
| tree | f85b91bd290929e96126364ee86c74cc3a6eee7e /apt-pkg/solver3.h | |
| parent | 5b7af08e4b23f00fc1de4dfe4178d867a560553d (diff) | |
solver3: Cache all configuration calls
Diffstat (limited to 'apt-pkg/solver3.h')
| -rw-r--r-- | apt-pkg/solver3.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
