]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.cc
* merged with mainline
[apt.git] / apt-pkg / algorithms.cc
index 98bd8dd8bac9be636be9ce3e1007e5bbf372e3d6..dd16b5dc861f2ae0e09c1beac37c14a3541a177f 100644 (file)
@@ -1330,11 +1330,12 @@ void pkgMarkPkgUsed(pkgDepCache &Cache, pkgCache::PkgIterator Pkg,
 bool pkgMarkUsed(pkgDepCache &Cache)
 {
    // debug only
-   for (pkgCache::PkgIterator Pkg = Cache.PkgBegin(); ! Pkg.end(); ++Pkg)
-      if(!Cache[Pkg].Dirty() && Cache[Pkg].AutomaticRemove > 0)
-        std::cout << "has auto-remove information: " << Pkg.Name() 
-                  << " " << (int)Cache[Pkg].AutomaticRemove 
-                  << std::endl;
+   if(_config->FindI("Debug::pkgAutoRemove",false) == true)
+     for (pkgCache::PkgIterator Pkg = Cache.PkgBegin(); ! Pkg.end(); ++Pkg)
+        if(!Cache[Pkg].Dirty() && Cache[Pkg].AutomaticRemove > 0)
+          std::cout << "has auto-remove information: " << Pkg.Name() 
+                    << " " << (int)Cache[Pkg].AutomaticRemove 
+                    << std::endl;
 
    // init with defaults
    for (pkgCache::PkgIterator Pkg = Cache.PkgBegin(); ! Pkg.end(); ++Pkg)