diff options
author | Michael Vogt <egon@tas> | 2006-12-18 19:39:42 +0100 |
---|---|---|
committer | Michael Vogt <egon@tas> | 2006-12-18 19:39:42 +0100 |
commit | 4172c78468a04078c97146dbc2e2979e63906f5b (patch) | |
tree | be6922ea6bc30adbc332723689f1a3300cd51f86 | |
parent | d2de5a7619a77343e1dd1fc255a84dfcca2807be (diff) |
* apt-pkg/algorithms.cc:
- only increase the score of installed applications if they are not
obsolte (still downloadable)
-rw-r--r-- | apt-pkg/algorithms.cc | 6 | ||||
-rw-r--r-- | debian/changelog | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index 8d1e4e8e8..0d486d102 100644 --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@ -494,8 +494,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; } diff --git a/debian/changelog b/debian/changelog index 127c5fd83..06cede531 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,11 @@ -apt (0.6.46.5) unstable; urgency=low +apt (0.6.46.5) UNRELEASED; urgency=low * apt-pkg/algorithm.cc: - use clog for all debugging + - only increase the score of installed applications if they + are not obsolete - -- + -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 18 Dec 2006 19:39:05 +0100 apt (0.6.46.4) unstable; urgency=high |