]> git.saurik.com Git - apt.git/commitdiff
ensure that short-name -> long-name detection for dpkg-status works for reinstalls too
authorMichael Vogt <mvo@debian.org>
Thu, 17 Oct 2013 06:18:09 +0000 (08:18 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 17 Oct 2013 06:18:09 +0000 (08:18 +0200)
apt-pkg/deb/dpkgpm.cc

index 1b234c0ed61da4da88f5ec56f3b428213466f89e..19de440018ac752aaba98fb8b0a02a0135e5a8fb 100644 (file)
@@ -561,7 +561,9 @@ void pkgDPkgPM::ProcessDpkgStatusLine(char *line)
           pkgCache::PkgIterator P = Grp.PackageList();
           for (; P.end() != true; P = Grp.NextPkg(P))
           {
-              if(Cache[P].Mode != pkgDepCache::ModeKeep)
+             if(Cache[P].Install() || Cache[P].ReInstall() || 
+                Cache[P].Upgrade() || Cache[P].Downgrade() ||
+                Cache[P].Delete() || Cache[P].Purge())
               {
                   pkgname = P.FullName();
                   break;
@@ -569,6 +571,7 @@ void pkgDPkgPM::ProcessDpkgStatusLine(char *line)
           }
       }
    }
+
    const char* const pkg = pkgname.c_str();
    const char* action = list[2].c_str();