set also "all" to this version for pseudo packages in TryToChangeVer
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 24 Apr 2010 11:15:33 +0000 (13:15 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 24 Apr 2010 11:15:33 +0000 (13:15 +0200)
cmdline/apt-get.cc
debian/changelog

index 672f64c..b43164c 100644 (file)
@@ -1264,6 +1264,11 @@ bool TryToChangeVer(pkgCache::PkgIterator Pkg,pkgDepCache &Cache,
    }
    
    Cache.SetCandidateVersion(Ver);
+
+   // Set the all package to the same candidate
+   if (Ver.Pseudo() == true)
+      Cache.SetCandidateVersion(Match.Find(Pkg.Group().FindPkg("all")));
+
    return true;
 }
                                                                        /*}}}*/
index ee2be29..a1a289a 100644 (file)
@@ -20,6 +20,7 @@ apt (0.7.26~exp4) experimental; urgency=low
       instead of displaying the strongest available (Closes: #576420)
     - regex for package names executed on Grp- not PkgIterator
     - show non-candidates as fallback for virtual packages (Closes: #578385)
+    - set also "all" to this version for pseudo packages in TryToChangeVer
   * apt-pkg/deb/dpkgpm.cc:
     - remove Chroot-Directory from files passed to install commands.
       Thanks to Kel Modderman for report & patch! (Closes: #577226)