diff options
author | bubulle@debian.org <> | 2007-01-29 08:36:47 +0100 |
---|---|---|
committer | bubulle@debian.org <> | 2007-01-29 08:36:47 +0100 |
commit | cfc181bae09cf2df8bc0802231eaa47f310fc577 (patch) | |
tree | 2fd43ed1ef4fc45a0cfd07e2c844f83224530f56 /apt-pkg/algorithms.cc | |
parent | 480ecc8bfe493a669b5076a350ac0300f04c7b6a (diff) | |
parent | 020daa7b026cf1496959ccc9d062d95cb5f8ec02 (diff) |
Merge with Michael
Remove a non breakable space in the Frenc translation. Closes: #408877
Diffstat (limited to 'apt-pkg/algorithms.cc')
-rw-r--r-- | apt-pkg/algorithms.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index 479927d65..5fa16e66f 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].CandidateVer != 0 && Cache[I].CandidateVerIter(Cache).Downloadable()) Score += 1; } @@ -784,7 +786,7 @@ bool pkgProblemResolver::Resolve(bool BrokenFix) continue; if (Debug == true) - cout << "Investigating " << I.Name() << endl; + clog << "Investigating " << I.Name() << endl; // Isolate the problem dependency PackageKill KillList[100]; @@ -839,7 +841,12 @@ bool pkgProblemResolver::Resolve(bool BrokenFix) OldEnd = LEnd; } else + { Start++; + // We only worry about critical deps. + if (Start.IsCritical() != true) + continue; + } // Dep is ok if ((Cache[End] & pkgDepCache::DepGInstall) == pkgDepCache::DepGInstall) |