From: Michael Vogt Date: Tue, 8 Jan 2013 16:56:32 +0000 (+0100) Subject: fix pkgProblemResolver::Scores, thanks to Paul Wise. X-Git-Tag: 1.1.exp1~53^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/c0751c067f54de860a6372022ad64b9518c91391 fix pkgProblemResolver::Scores, thanks to Paul Wise. Closes: #697577 --- c0751c067f54de860a6372022ad64b9518c91391 diff --cc apt-pkg/algorithms.cc index 8cd9d4c6e,75e914f7d..7fcd9f0db --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@@ -550,11 -550,11 +550,14 @@@ void pkgProblemResolver::MakeScores( unsigned long Size = Cache.Head().PackageCount; memset(Scores,0,sizeof(*Scores)*Size); -- // Important Required Standard Optional Extra ++ // Maps to pkgCache::State::VerPriority ++ // which is "Important Required Standard Optional Extra" ++ // (yes, that is confusing, the order of pkgCache::State::VerPriority ++ // needs to be adjusted but that requires a ABI break) int PrioMap[] = { 0, - _config->FindI("pkgProblemResolver::Scores::Important",3), - _config->FindI("pkgProblemResolver::Scores::Required",2), + _config->FindI("pkgProblemResolver::Scores::Important",2), + _config->FindI("pkgProblemResolver::Scores::Required",3), _config->FindI("pkgProblemResolver::Scores::Standard",1), _config->FindI("pkgProblemResolver::Scores::Optional",-1), _config->FindI("pkgProblemResolver::Scores::Extra",-2)