]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.cc
Portuguse translation updated. Closes: #423111
[apt.git] / apt-pkg / algorithms.cc
index e1b9406e2341f9d85d98793b055ecf055ab6363d..5fa16e66f9bd9f45095feff8af40f6302c7f3228 100644 (file)
@@ -497,7 +497,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;
    }