From 5d2c0e600656db690aaeb0768f3df8e71127808a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 12 Aug 2024 15:27:31 +0200 Subject: Fix obsoleted-by handling for experimental Basically this boils down to checking that the priority of the source candidate candidate is higher or equal than the priority of the package's candidate that is being under consideration. It stands to reason if we maybe we should actually calculate a source candidate version; this will look similar but may perhaps perform slightly different. --- apt-pkg/solver3.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apt-pkg/solver3.h') diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h index 96faaa605..33067a0ad 100644 --- a/apt-pkg/solver3.h +++ b/apt-pkg/solver3.h @@ -104,8 +104,9 @@ class Solver return verStates[V->ID]; } - std::vector pkgObsolete; - bool Obsolete(pkgCache::PkgIterator pkg); + mutable std::vector pkgObsolete; + bool Obsolete(pkgCache::PkgIterator pkg) const; + bool ObsoletedByNewerSourceVersion(pkgCache::VerIterator cand) const; // \brief Heap of the remaining work. // -- cgit v1.2.3-70-g09d2