diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-12-20 11:01:03 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-12-20 11:01:03 +0100 |
commit | a345a69945548525d5219fcd18e3754f4d252bfd (patch) | |
tree | 05c04c2f08e357f127b25e5a6c91cce40cd31b79 /apt-pkg | |
parent | 098d7904ec731c4b3d7e87c7bdb39c9e53a43c8d (diff) | |
parent | 020daa7b026cf1496959ccc9d062d95cb5f8ec02 (diff) |
* merged from main
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/algorithms.cc | 2 |
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; } |