summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2010-11-30 11:23:28 +0100
committerMichael Vogt <mvo@debian.org>2010-11-30 11:23:28 +0100
commit4279ef3b0a35327a03955461fff3cd6821463457 (patch)
treee87f07b109121a7cb8f28516c59eb22bbdaef474 /apt-pkg
parent0957a13baf7c6d9a4093bfd6c7316fa018cb717b (diff)
parent6affe4a851ba5c78ecee350c279250eb6ab018d5 (diff)
merged from lp:~donkult/apt/sid0.8.10
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/algorithms.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index 9abb7a947..0fbce3c2a 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -374,6 +374,13 @@ bool pkgDistUpgrade(pkgDepCache &Cache)
{
pkgDepCache::ActionGroup group(Cache);
+ /* Upgrade all installed packages first without autoinst to help the resolver
+ in versioned or-groups to upgrade the old solver instead of installing
+ a new one (if the old solver is not the first one [anymore]) */
+ for (pkgCache::PkgIterator I = Cache.PkgBegin(); I.end() == false; ++I)
+ if (I->CurrentVer != 0)
+ Cache.MarkInstall(I, false, 0, false);
+
/* Auto upgrade all installed packages, this provides the basis
for the installation */
for (pkgCache::PkgIterator I = Cache.PkgBegin(); I.end() == false; I++)