Parcourir la source

set the Candidate for all before doing the propargation

David Kalnischkies il y a 15 ans
Parent
commit
067cc3695f
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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();