diff options
author | Michael Vogt <mvo@debian.org> | 2014-04-11 14:39:28 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-04-11 14:39:28 +0200 |
commit | 473ccfb9454e2707c2145ec49e671b78dc775e0c (patch) | |
tree | eb3981929f6b51a856fd9c3f307ab729a061a0e7 /apt-private/private-cacheset.cc | |
parent | 4cd4a2e7033a2af214be1d830b56fab719088b7a (diff) | |
parent | c8259fcde18ad9e08fffb04bf06ed64b87b1ac6a (diff) |
Merge remote-tracking branch 'mvo/bugfix/apt-list-rc-pkgs' into debian/sid
Diffstat (limited to 'apt-private/private-cacheset.cc')
-rw-r--r-- | apt-private/private-cacheset.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-private/private-cacheset.cc b/apt-private/private-cacheset.cc index 4a63c7e81..e37e7b227 100644 --- a/apt-private/private-cacheset.cc +++ b/apt-private/private-cacheset.cc @@ -73,7 +73,13 @@ bool GetLocalitySortedVersionSet(pkgCacheFile &CacheFile, else { pkgPolicy *policy = CacheFile.GetPolicy(); - output_set.insert(policy->GetCandidateVer(P)); + if (policy->GetCandidateVer(P).IsGood()) + output_set.insert(policy->GetCandidateVer(P)); + else + // no candidate, this may happen for packages in + // dpkg "deinstall ok config-file" state - we pick the first ver + // (which should be the only one) + output_set.insert(P.VersionList()); } } progress.Done(); |