summaryrefslogtreecommitdiff
path: root/apt-pkg/solver3.h
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-07-02 18:51:11 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2024-07-02 20:08:38 +0200
commit8c13d9cb1c38ebb52cf6e1c8c7561c5c5d87c970 (patch)
treead97847b020ccb5083c0ab8e9cfe1705c1a70c3c /apt-pkg/solver3.h
parentb2b59c85fa451ff232bc6400da732bb286b1cc0f (diff)
solver3: Consider packages as obsolete and not versions
This makes more sense, as all package versions are obsolete that are not the candidate, usually. Pay special attention to no-strict-pinning: If we don't have strict pinning, a package without a candidate version may still be non-obsolete if the latest version is not obsolete. Likewise, in no-strict-pinning any later source version that exists will cause the package to be considered obsolete, rather than just candidates.
Diffstat (limited to 'apt-pkg/solver3.h')
-rw-r--r--apt-pkg/solver3.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h
index 9a9d67a02..d460c95d9 100644
--- a/apt-pkg/solver3.h
+++ b/apt-pkg/solver3.h
@@ -104,8 +104,8 @@ class Solver
return verStates[V->ID];
}
- std::vector<char> verObsolete;
- bool Obsolete(pkgCache::VerIterator ver);
+ std::vector<char> pkgObsolete;
+ bool Obsolete(pkgCache::PkgIterator pkg);
// \brief Heap of the remaining work.
//