summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-12-20 11:01:03 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-12-20 11:01:03 +0100
commita345a69945548525d5219fcd18e3754f4d252bfd (patch)
tree05c04c2f08e357f127b25e5a6c91cce40cd31b79
parent098d7904ec731c4b3d7e87c7bdb39c9e53a43c8d (diff)
parent020daa7b026cf1496959ccc9d062d95cb5f8ec02 (diff)
* merged from main
-rw-r--r--apt-pkg/algorithms.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index eb59a42ca..bd8147291 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -512,7 +512,7 @@ void pkgProblemResolver::MakeScores()
on the same level. We enhance the score of installed packages
if those are not obsolete
*/
- if (I->CurrentVer != 0 && Cache[I].CandidateVerIter(Cache).Downloadable())
+ if (I->CurrentVer != 0 && Cache[I].CandidateVer != 0 && Cache[I].CandidateVerIter(Cache).Downloadable())
Score += 1;
}