summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-10-17 08:18:09 +0200
committerMichael Vogt <mvo@debian.org>2013-10-17 08:18:09 +0200
commit7c016f6e107ba55d7b55870166273ce63c4ecb65 (patch)
tree6665127be80bc09b38e5aeb87aa5e144ff5366fd /apt-pkg/deb
parente8022b09e73ee89d3b748e1c8dba82abba5b37f3 (diff)
ensure that short-name -> long-name detection for dpkg-status works for reinstalls too
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/dpkgpm.cc5
1 files changed, 4 insertions, 1 deletions
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();