From 8f317d97c9fb821e839342ae445c824207678eb7 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 2 Nov 2024 12:45:07 +0100 Subject: solver3: Reject all non-candidates outright for strict pinning Reimplement strict pinning by rejecting the non-candidates when translating the problem from the depcache to the solver. This is substantially better than restricting the list of alternatives for an or group to only include allowed ones for debugging purposes, albeit a bit slower. --- apt-pkg/solver3.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'apt-pkg/solver3.h') diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h index 0e6d0e2f9..a643d5d07 100644 --- a/apt-pkg/solver3.h +++ b/apt-pkg/solver3.h @@ -157,8 +157,6 @@ class Solver bool PropagateInstall(Var var); // \brief Propagate a rejection of a variable bool PropagateReject(Var var); - // \brief Check if a version is allowed by policy. - bool IsAllowedVersion(pkgCache::Version *V); // \brief Return the current depth (choices.size() with casting) depth_type depth() -- cgit v1.2.3-70-g09d2