summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2025-01-30 13:46:09 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2025-01-30 14:50:15 +0100
commit45432cc57144715109f27d0bb83356b12e2a4ef5 (patch)
treeaa27f9354af7b5a63a1337b69496ff27e5079487 /apt-pkg
parenta20242cf3a7321e78cfd4afd892d67255d8282ba (diff)
solver3: Remove NewUnsatRecommends group
This is more or less unused; but it particularly has the bad problem of forcing new unsat recommends to be solved *before* dependencies. Which is awkward.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/solver3.cc2
-rw-r--r--apt-pkg/solver3.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/apt-pkg/solver3.cc b/apt-pkg/solver3.cc
index b876636c6..ce38d75d8 100644
--- a/apt-pkg/solver3.cc
+++ b/apt-pkg/solver3.cc
@@ -603,8 +603,6 @@ bool APT::Solver::EnqueueOrGroup(pkgCache::DepIterator start, pkgCache::DepItera
return true;
}
}
- else if (workItem.optional && start.ParentPkg()->CurrentVer == 0)
- workItem.group = Group::NewUnsatRecommends;
if (not workItem.solutions.empty())
{
diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h
index a643d5d07..c7437f8fb 100644
--- a/apt-pkg/solver3.h
+++ b/apt-pkg/solver3.h
@@ -46,7 +46,6 @@ class Solver
enum class Group : uint8_t
{
HoldOrDelete,
- NewUnsatRecommends,
// Satisfying dependencies on entirely new packages first is a good idea because
// it may contain replacement packages like libfoo1t64 whereas we later will see