Sfoglia il codice sorgente

always mark the all package if a pseudo package is marked for install

David Kalnischkies 16 anni fa
parent
commit
5c640e864f
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 4 0
      apt-pkg/depcache.cc
  2. 2 2
      debian/changelog

+ 4 - 0
apt-pkg/depcache.cc

@@ -1255,6 +1255,10 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
    Update(Pkg);
    AddSizes(Pkg);
 
+   // always trigger the install of the all package for a pseudo package
+   if (P.CandidateVerIter(*Cache).Pseudo() == true)
+      MarkInstall(Pkg.Group().FindPkg("all"), AutoInst, Depth, FromUser, ForceImportantDeps);
+
    if (AutoInst == false)
       return;
 

+ 2 - 2
debian/changelog

@@ -17,6 +17,7 @@ apt (0.7.26~exp8) UNRELEASED; urgency=low
     - SetCandidateVer for all pseudo packages
     - SetReInstall for the "all" package of a pseudo package
     - use the new MatchAgainstConfig for the DefaultRootSetFunc
+    - always mark the all package if a pseudo package is marked for install
   * apt-pkg/contrib/error.{cc,h}:
     - complete rewrite but use the same API
     - add NOTICE and DEBUG as new types of a message
@@ -28,9 +29,8 @@ apt (0.7.26~exp8) UNRELEASED; urgency=low
   * apt-pkg/contrib/fileutl.cc:
     - show notice about ignored file instead of being always silent
     - add a Dir::Ignore-Files-Silently list option to control the notice
-  * 
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 26 Jun 2010 18:40:01 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 26 Jun 2010 20:43:09 +0200
 
 apt (0.7.26~exp7) experimental; urgency=low