Explorar o código

set the Candidate for all before doing the propargation

David Kalnischkies %!s(int64=16) %!d(string=hai) anos
pai
achega
067cc3695f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      cmdline/apt-get.cc

+ 4 - 0
cmdline/apt-get.cc

@@ -833,6 +833,10 @@ struct TryToInstall {
 
 
    bool propergateReleaseCandiateSwitching(std::list<std::pair<pkgCache::VerIterator, std::string> > start, std::ostream &out)
    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;
       bool Success = true;
       std::list<std::pair<pkgCache::VerIterator, pkgCache::VerIterator> > Changed;
       std::list<std::pair<pkgCache::VerIterator, pkgCache::VerIterator> > Changed;
       for (std::list<std::pair<pkgCache::VerIterator, std::string> >::const_iterator s = start.begin();
       for (std::list<std::pair<pkgCache::VerIterator, std::string> >::const_iterator s = start.begin();