don't consider holds for autoremoval
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 30 Sep 2013 16:51:40 +0000 (18:51 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 1 Oct 2013 09:17:26 +0000 (11:17 +0200)
commit8fa042ca39dcb39d544f015f4a924c5dbc10ad2c
tree74cff712f9f072427f95164966de97aaa02995b2
parentfd46d30571eb240ec3aae792e7a56061ede50524
don't consider holds for autoremoval

We can't remove packages which are held back by the user with a hold, so
marking them (or its dependencies) as garbage will lead our autoremover
into madness – and given that the package is important enough that the
user has held it back it can't be garbage (at least at the moment), so
even if a front-end wants to use the info just for information display
its a good idea to not consider it garbage for them.

Closes: 724995
apt-pkg/depcache.cc
apt-pkg/depcache.h
test/integration/test-apt-get-autoremove