]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.cc
* merged with ubuntu, only use the pkgCache::Flag::Auto flag for automatically instal...
[apt.git] / apt-pkg / algorithms.cc
index bed90f5d066f0efc764d9f361429b35865217085..c679e76f67ba0fbdf3c95965afb72954eb8207e7 100644 (file)
@@ -1349,7 +1349,7 @@ bool pkgMarkUsed(pkgDepCache &Cache)
    // do the mark part
    for(pkgCache::PkgIterator p=Cache.PkgBegin(); !p.end(); ++p)
    {
-      if(Cache[p].InstallReason==pkgDepCache::Manual ||
+      if(!(Cache[p].Flags & pkgCache::Flag::Auto) ||
         (p->Flags & pkgCache::Flag::Essential))
       {
         if(Cache[p].Keep() && !p.CurrentVer().end())