From: Jay Freeman (saurik) Date: Sat, 28 Jun 2008 18:41:26 +0000 (+0000) Subject: APT likes to wedge dpkg, let's fix that. X-Git-Url: https://git.saurik.com/apt-legacy.git/commitdiff_plain/7ae8af6409c47dfa1c9eca9459a7157157bf1e0c APT likes to wedge dpkg, let's fix that. A reinstreq.diff git-svn-id: http://svn.telesphoreo.org/trunk@337 514c082c-b64e-11dc-b46d-3d985efe055d --- diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index b4175f7..475caeb 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -451,6 +451,8 @@ bool pkgDPkgPM::Go(int OutStatusFd) case Item::Remove: Args[n++] = "--force-depends"; Size += strlen(Args[n-1]); + Args[n++] = "--force-remove-reinstreq"; + Size += strlen(Args[n-1]); Args[n++] = "--force-remove-essential"; Size += strlen(Args[n-1]); Args[n++] = "--remove"; @@ -460,6 +462,8 @@ bool pkgDPkgPM::Go(int OutStatusFd) case Item::Purge: Args[n++] = "--force-depends"; Size += strlen(Args[n-1]); + Args[n++] = "--force-remove-reinstreq"; + Size += strlen(Args[n-1]); Args[n++] = "--force-remove-essential"; Size += strlen(Args[n-1]); Args[n++] = "--purge";