summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-12-03 19:12:17 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-12-03 19:12:17 +0100
commit067cc3695f46704b890211788a85ad05e7004c6d (patch)
treedde224c738d8ff88dcd0afed9e2c642ee70d8652
parentdf6c9723de23f0c2c3ccf76b7b4310019fd33366 (diff)
set the Candidate for all before doing the propargation
-rw-r--r--cmdline/apt-get.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index d586d9ab0..0a22fd42b 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -833,6 +833,10 @@ struct TryToInstall {
bool propergateReleaseCandiateSwitching(std::list<std::pair<pkgCache::VerIterator, std::string> > start, std::ostream &out)
{
+ for (std::list<std::pair<pkgCache::VerIterator, std::string> >::const_iterator s = start.begin();
+ s != start.end(); ++s)
+ Cache->GetDepCache()->SetCandidateVersion(s->first);
+
bool Success = true;
std::list<std::pair<pkgCache::VerIterator, pkgCache::VerIterator> > Changed;
for (std::list<std::pair<pkgCache::VerIterator, std::string> >::const_iterator s = start.begin();