set the Candidate for all before doing the propargation
authorDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 3 Dec 2010 18:12:17 +0000 (19:12 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 3 Dec 2010 18:12:17 +0000 (19:12 +0100)
cmdline/apt-get.cc

index d586d9a..0a22fd4 100644 (file)
@@ -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();