Просмотр исходного кода

set the Candidate for all before doing the propargation

David Kalnischkies лет назад: 15
Родитель
Сommit
067cc3695f
1 измененных файлов с 4 добавлено и 0 удалено
  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)
    {
+      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();