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. --- test/integration/test-handling-broken-orgroups | 2 +- test/integration/test-solver3-obsoleted-by | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/integration/test-handling-broken-orgroups b/test/integration/test-handling-broken-orgroups index 1c20ae4f1..50b158752 100755 --- a/test/integration/test-handling-broken-orgroups +++ b/test/integration/test-handling-broken-orgroups @@ -95,7 +95,7 @@ Inst coolstuff-provided (1.0-1 unstable [all]) Conf extrastuff (1.0-1 unstable [all]) Conf coolstuff-provided (1.0-1 unstable [all])' aptget install coolstuff-provided -s -testfailuremsg 'E: Unsatisfiable dependency group coolstuff-provided-broken:i386=1.0-1 -> cool2:i386' aptget install coolstuff-provided-broken --solver 3.0 -s +testfailuremsg 'E: Conflict: coolstuff-provided-broken:i386=1.0-1 -> extrastuff:i386=1.0-1 but not extrastuff:i386=1.0-1' aptget install coolstuff-provided-broken --solver 3.0 -s testfailureequal 'Reading package lists... Building dependency tree... Some packages could not be installed. This may mean that you have diff --git a/test/integration/test-solver3-obsoleted-by b/test/integration/test-solver3-obsoleted-by index 031589bb4..486c55c58 100755 --- a/test/integration/test-solver3-obsoleted-by +++ b/test/integration/test-solver3-obsoleted-by @@ -66,9 +66,12 @@ testobsolete "Obsolete: not-yet-built:amd64 - not installable Obsolete: good:amd64 - not installable Obsolete: obsolete:amd64 - not installable Obsolete: obsolete-in-experimental:amd64 - not installable -Obsolete: current-version:amd64 - not installable +Obsolete: obsolete-reason:amd64 - not installable Obsolete: local-only:amd64 - not installable -Obsolete: obsolete-in-downgrade:amd64 - not installable" aptget dist-upgrade +Obsolete: obsolete-in-experimental-reason:amd64 - not installable +Obsolete: current-version:amd64 - not installable +Obsolete: obsolete-in-downgrade:amd64 - not installable +Obsolete: obsolete-in-downgrade-reason:amd64 - not installable" aptget dist-upgrade testobsolete "Obsolete: obsolete:amd64=1 due to obsolete-reason:amd64=2 Obsolete: obsolete-in-experimental:amd64=1 due to obsolete-in-experimental-reason:amd64=2 -- cgit v1.2.3-70-g09d2