]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.cc
* merged with mainline
[apt.git] / apt-pkg / algorithms.cc
index 58498aa19560f6b5993191e17b0f362834cadf58..5e878ff650d85a9a12026fdd2463e4f6fbe5feb0 100644 (file)
@@ -509,8 +509,10 @@ void pkgProblemResolver::MakeScores()
         Score += PrioMap[Cache[I].InstVerIter(Cache)->Priority];
       
       /* This helps to fix oddball problems with conflicting packages
-         on the same level. We enhance the score of installed packages */
-      if (I->CurrentVer != 0)
+         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())
         Score += 1;
    }