diff options
| author | Julian Andres Klode <jak@debian.org> | 2025-07-22 19:58:14 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2025-08-26 13:41:35 +0200 |
| commit | db78e2f8eafb1009bd47e488fc39d8b420f4c749 (patch) | |
| tree | 2e56f81714e94389463615269e84b8e889374c8d /test/integration/test-release-candidate-switching | |
| parent | e7ad79fddc6aa46b8f5efce890928db47be7b48b (diff) | |
solver3: Sort dependency targets against current alternative
Instead of inadvertently sorting dependency targets against
the first alternative in an or group, sort them against the
current alternative as we should.
Otherwise we ended up sorting
gnome-shell | notification-daemon
With
Package: notification-daemon
Package: awesome
Provides: notification-daemon
into
gnome-shell | awesome | notification-daemon
<-we sorted this part wrongly->
This fixes a minor difference in test-release-candidate-switching
in one case, but not the other where the difference was actually
caused by the loss of install argument ordering information in
the new solver, so just flip the arguments so both solvers produce
the same outcome.
Diffstat (limited to 'test/integration/test-release-candidate-switching')
| -rwxr-xr-x | test/integration/test-release-candidate-switching | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/integration/test-release-candidate-switching b/test/integration/test-release-candidate-switching index 52d3e5a12..18396252f 100755 --- a/test/integration/test-release-candidate-switching +++ b/test/integration/test-release-candidate-switching @@ -117,8 +117,6 @@ Need to get 0 B/252 B of archives. After this operation, 258 kB of additional disk space will be used. E: Trivial Only specified but this is not a trivial operation." aptget install amarok/experimental --trivial-only -V -phonon_backend_default="phonon-backend-null (4:4.20.0+sid)" -[ "$APT_SOLVER" != "3.0" ] || phonon_backend_default="phonon-backend-xine (4:4.6.0really4.4.2-1+sid)" testfailureequal "Reading package lists... Building dependency tree... Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-null' @@ -129,14 +127,14 @@ The following additional packages will be installed: amarok-utils (2.3.2-2+exp) libc6 (2.11.2-7+sid) libmtp8 (0.3.1+sid) - $phonon_backend_default + phonon-backend-null (4:4.20.0+sid) The following NEW packages will be installed: amarok-common (2.3.2-2+exp) amarok-null (2.3.2-2+exp) amarok-utils (2.3.2-2+exp) libc6 (2.11.2-7+sid) libmtp8 (0.3.1+sid) - $phonon_backend_default + phonon-backend-null (4:4.20.0+sid) 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/252 B of archives. After this operation, 258 kB of additional disk space will be used. @@ -145,16 +143,16 @@ E: Trivial Only specified but this is not a trivial operation." aptget install a # do not select the same version multiple times testfailureequal "Reading package lists... Building dependency tree... -Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok' -Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok' -Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok' Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-null' +Selected version '2.3.2-2+exp' (experimental [all]) for 'amarok-common' because of 'amarok-null' +Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok-utils' because of 'amarok-null' +Selected version '2.3.2-2+exp' (experimental [i386]) for 'amarok' The following additional packages will be installed: amarok-common (2.3.2-2+exp) amarok-utils (2.3.2-2+exp) libc6 (2.11.2-7+sid) libmtp8 (0.3.1+sid) - phonon-backend-xine (4:4.6.0really4.4.2-1+sid) + phonon-backend-null (4:4.20.0+sid) The following NEW packages will be installed: amarok (2.3.2-2+exp) amarok-common (2.3.2-2+exp) @@ -162,11 +160,11 @@ The following NEW packages will be installed: amarok-utils (2.3.2-2+exp) libc6 (2.11.2-7+sid) libmtp8 (0.3.1+sid) - phonon-backend-xine (4:4.6.0really4.4.2-1+sid) + phonon-backend-null (4:4.20.0+sid) 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/294 B of archives. After this operation, 301 kB of additional disk space will be used. -E: Trivial Only specified but this is not a trivial operation." aptget install amarok/experimental amarok-null/experimental --trivial-only -V +E: Trivial Only specified but this is not a trivial operation." aptget install amarok-null/experimental amarok/experimental --trivial-only -V # … but thighten the version if needed # in theory, the second line is wrong, but printing the right version is too much of a hassle |
