]> git.saurik.com Git - apt.git/commit
pass --force-remove-essential to dpkg only if needed
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 3 Jul 2016 11:57:25 +0000 (13:57 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 5 Oct 2016 10:02:19 +0000 (12:02 +0200)
commit6c36aa231b8dcde3b4698157a1ed1e7e4054a0ea
tree68f8e65daee32da082bcbb16602a25a591b1c9ca
parentc614d66183639638f588422e2b0b3258d4f52323
pass --force-remove-essential to dpkg only if needed

APT (usually) knows which package is essential or not, so we can avoid
passing this force flag to dpkg unconditionally  if the user hasn't
chosen a non-default essential handling obscuring the information.

(cherry picked from commit d3930f8716f439c229cd3d11813823d847a2ecff)
apt-pkg/deb/dpkgpm.cc
test/integration/test-essential-force-loopbreak
test/integration/test-ubuntu-bug-761175-remove-purge