]> git.saurik.com Git - apt-legacy.git/commitdiff
APT likes to wedge dpkg, let's fix that.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 28 Jun 2008 18:41:26 +0000 (18:41 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 28 Jun 2008 18:41:26 +0000 (18:41 +0000)
A reinstreq.diff

git-svn-id: http://svn.telesphoreo.org/trunk@337 514c082c-b64e-11dc-b46d-3d985efe055d

apt-pkg/deb/dpkgpm.cc

index b4175f7edb53594603dd22162ab172370e7b34fb..475caebd2060211c16534e3c41969445518c7a5d 100644 (file)
@@ -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";