]> git.saurik.com Git - apt.git/commit
protect only the latest same-source providers from autoremove
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 1 Jul 2016 08:06:53 +0000 (10:06 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 1 Jul 2016 08:06:53 +0000 (10:06 +0200)
commita0ed43f7323b9d7976ed0ba8d437a42e24af9eaf
treec81e4980d285dc5c3c975d827df22e18fd0a715e
parent5a3339db48479114a0e1e11ebc8d640eb3e49933
protect only the latest same-source providers from autoremove

Traditionally all providers are protected providing something as apt
can't know which of them is actually really providing the functionality
for the user ensuring that we don't propose the removal of used stuff,
but that is of course also keeping stuff around which could be removed.

That can cause the collection of multiple old providers until the
provided package is itself no longer needed (e.g. out-of-tree kernel
modules). We combat this by marking providers only from the newest
source package version so that old providers built by older versions of
the same source package can be garbage collected.
apt-pkg/depcache.cc
test/integration/test-apt-get-autoremove