Przeglądaj źródła

* merged from main

Michael Vogt 19 lat temu
rodzic
commit
a345a69945
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apt-pkg/algorithms.cc

+ 1 - 1
apt-pkg/algorithms.cc

@@ -512,7 +512,7 @@ void pkgProblemResolver::MakeScores()
          on the same level. We enhance the score of installed packages 
          on the same level. We enhance the score of installed packages 
 	 if those are not obsolete
 	 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;
 	 Score += 1;
    }
    }