diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-12-03 19:12:17 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-12-03 19:12:17 +0100 |
commit | 067cc3695f46704b890211788a85ad05e7004c6d (patch) | |
tree | dde224c738d8ff88dcd0afed9e2c642ee70d8652 | |
parent | df6c9723de23f0c2c3ccf76b7b4310019fd33366 (diff) |
set the Candidate for all before doing the propargation
-rw-r--r-- | cmdline/apt-get.cc | 4 |
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(); |