]> git.saurik.com Git - apt.git/commit
save and restore selection states before/after calling dpkg
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 3 Jul 2016 12:39:16 +0000 (14:39 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 10 Aug 2016 21:18:04 +0000 (23:18 +0200)
commitb820fd59c4fe6e3581901eee648e88209be56137
tree0f0dbfefc9ed35e553a70a7f8c3e95857a3bea02
parentf495992428a396e0f98886c9a761a804aa161c68
save and restore selection states before/after calling dpkg

dpkg decides certain things on its own based on selections and
especially if we want to call --pending on purge/remove actions, we need
to ensure a clean slate or otherwise we surprise the user by removing
packages we weren't allowed to remove by the user in this run (the
selection might be an overarching plan for the not-yet "future").

Ideally dpkg would have some kind of temporal selection interface for
this case, but it hasn't, so we make it temporal with the risk of
loosing state if we don't manage to restore them.
apt-pkg/deb/dpkgpm.cc
apt-pkg/statechanges.cc
test/integration/test-apt-get-autoremove