summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2021-04-14 10:48:15 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2021-04-21 11:49:50 +0200
commit6cb80d1eb2e8abcd4246fe39af3d1cd0398e1188 (patch)
treeea82140c02dd0cb1cd7261203fda385885eafe08
parent30f47dc8d67be28c7c17db3bd5153d76a1e079bc (diff)
Do not pass --force-remove-protected with --auto-deconfigure
dpkg 1.20.8 no longer requires this.
-rw-r--r--apt-pkg/deb/dpkgpm.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index af288b640..c1a9f6f68 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -1851,9 +1851,6 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress)
case Item::Install:
Args.push_back("--unpack");
Args.push_back("--auto-deconfigure");
- // dpkg < 1.20.8 needs --force-remove-protected to deconfigure protected packages
- if (dpkgProtectedField)
- Args.push_back("--force-remove-protected");
break;
}