summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2024-05-16 14:51:28 +0000
committerDavid Kalnischkies <david@kalnischkies.de>2024-05-16 20:12:51 +0000
commitf404c8e06e07c2a89efb0f1ba997a7f1c0c472db (patch)
treed7e55ba92e7436c20d6108875670fe82f731097f /test
parentb1c3039dae19553bff19615fbb4d116aeaa644a7 (diff)
Do not save new if we have already installed providers
Companion of the previous commit that uses the same reasoning, but from the other side of the logic (as we start from reverse deps here) so that we are dropping the useless NEW from the solution. Ideally this code would not live in -private, but in -pkg, but there is not really a pre-existent good central place for this currently as a sort-of fixup for our default resolver given this is the result of resolver decision to not do something which had ripple effects that aren't reverted along with it. It is a bit unlikely that this is fixing all instances that this bug has given we have dealt with a few instances of it already as they are relatively obscure situations to clean up after and the cost of being wrong (= autoremover generating breaks) is much higher than being correct (= no pointless install – that is likely installed later anyhow after the temporary automatic hold is lifted). And by virtue of being the result of mostly temporary situations its also unlikely to be debugable in hindsight months later; so if there is another situation, its better to deal with it in a new bugreport. Closes: #839546
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-bug-604222-new-and-autoremove11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/integration/test-bug-604222-new-and-autoremove b/test/integration/test-bug-604222-new-and-autoremove
index 92219fc07..6a251c8f5 100755
--- a/test/integration/test-bug-604222-new-and-autoremove
+++ b/test/integration/test-bug-604222-new-and-autoremove
@@ -29,19 +29,12 @@ Recommends: libgphoto2-l10n (= 2)'
setupaptarchive
-testsuccessequal "Reading package lists...
+testsuccessequal 'Reading package lists...
Building dependency tree...
Calculating upgrade...
-The following package was automatically installed and is no longer required:
- libfoto1t64
-Use 'apt autoremove' to remove it.
-The following NEW packages will be installed:
- libfoto1t64
The following packages have been kept back:
photoapp2
-0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
-Inst libfoto1t64 (1 stable [i386])
-Conf libfoto1t64 (1 stable [i386])" apt upgrade -s
+0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.' apt upgrade -s
insertinstalledpackage 'libvtk5.4' 'i386' '5.4.2-7'
testsuccess aptmark markauto 'libvtk5.4'