summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-06-28 08:41:51 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-06-28 08:41:51 +0000
commit120365cee294d00706928b0327ac755ab3448eca (patch)
treed42b8e3ce6b11331f23b2bf075e0130f9d827073 /apt-pkg/algorithms.cc
parente004867d0979224adb9cbeb9705f156e16e3fe26 (diff)
* cleanups, documentation updates (don't show any debug output if no Debug::pkgAutomaticRemove was set, don't remove if not APT::Get::AutomaticRemove (--automatic-remove) was set)
Diffstat (limited to 'apt-pkg/algorithms.cc')
-rw-r--r--apt-pkg/algorithms.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index dd16b5dc8..5167d11eb 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -1066,7 +1066,10 @@ bool pkgProblemResolver::Resolve(bool BrokenFix)
pkgCache::PkgIterator I = Cache.PkgBegin();
for (;I.end() != true; I++) {
if (Cache[I].NewInstall() && !(Flags[I->ID] & PreInstalled)) {
- std::cout << "Resolve installed new pkg: " << I.Name() << " (now marking it as auto)" << std::endl;
+ if(_config->FindI("Debug::pkgAutoRemove",false)) {
+ std::clog << "Resolve installed new pkg: " << I.Name()
+ << " (now marking it as auto)" << std::endl;
+ }
Cache[I].Flags |= pkgCache::Flag::Auto;
}
}
@@ -1333,7 +1336,7 @@ bool pkgMarkUsed(pkgDepCache &Cache)
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()
+ std::clog << "has auto-remove information: " << Pkg.Name()
<< " " << (int)Cache[Pkg].AutomaticRemove
<< std::endl;