summaryrefslogtreecommitdiff
path: root/apt-pkg/upgrade.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2025-02-11 22:03:03 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2025-02-14 19:08:45 +0100
commit3ae41a76c19e5ad05600188de43b46c3e2800676 (patch)
tree338626cb24601c36be38990408b9c15679d04083 /apt-pkg/upgrade.cc
parentfdc8682db546077cb24b2cc8861b2d5e4eee9da5 (diff)
solver3: Pass EDSP flags directly rather than via config
This was a rather silly way to communicate state, and it was in the wrong place. Notably also, multiple calls to the solver had the options sticky, that is, if you run upgrade and then it calls ResolveByKeep(), for example.
Diffstat (limited to 'apt-pkg/upgrade.cc')
-rw-r--r--apt-pkg/upgrade.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/apt-pkg/upgrade.cc b/apt-pkg/upgrade.cc
index ac0b71cdf..fad47838c 100644
--- a/apt-pkg/upgrade.cc
+++ b/apt-pkg/upgrade.cc
@@ -312,11 +312,6 @@ bool pkgMinimizeUpgrade(pkgDepCache &Cache)
// APT::Upgrade::Upgrade - Upgrade using a specific strategy /*{{{*/
bool APT::Upgrade::Upgrade(pkgDepCache &Cache, int mode, OpProgress * const Progress)
{
- _config->Set("APT::Solver::Upgrade", "true");
- if (mode & FORBID_REMOVE_PACKAGES)
- _config->Set("APT::Solver::Remove", "false");
- if (mode & FORBID_INSTALL_NEW_PACKAGES)
- _config->Set("APT::Solver::Install", "false");
if (mode == ALLOW_EVERYTHING)
return pkgDistUpgrade(Cache, Progress);
else if ((mode & ~FORBID_REMOVE_PACKAGES) == 0)