summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-04-12 15:10:20 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2024-04-12 16:01:02 +0200
commit275ee5afe968e77d8379f0f3b6dc54c6239aa4f6 (patch)
tree334c414de4e080d3ae8c2f0da5c5b3d77ef8481c /apt-private
parentd3274a11d9e153cd996b89436b01d00b218a4985 (diff)
Only show Recommends/Suggests for new installs, not upgrades
This makes things more useful in combination with the upgrade command, but introduces a subtle change seen in the test suite when you use the install command to upgrade packages.
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-install.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc
index 26b81b052..3efae0112 100644
--- a/apt-private/private-install.cc
+++ b/apt-private/private-install.cc
@@ -923,7 +923,7 @@ static void ShowWeakDependencies(CacheFile &Cache)
for (auto const &Pkg: Universe)
{
/* Just look at the ones we want to install */
- if ((*Cache)[Pkg].Install() == false)
+ if ((*Cache)[Pkg].NewInstall() == false)
continue;
// get the recommends/suggests for the candidate ver