From: Michael Vogt Date: Thu, 17 Oct 2013 06:18:09 +0000 (+0200) Subject: ensure that short-name -> long-name detection for dpkg-status works for reinstalls too X-Git-Tag: 0.9.13.exp1~23 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/7c016f6e107ba55d7b55870166273ce63c4ecb65 ensure that short-name -> long-name detection for dpkg-status works for reinstalls too --- diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 1b234c0ed..19de44001 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -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();