From: Michael Vogt Date: Tue, 31 Aug 2010 11:32:50 +0000 (+0200) Subject: apt-pkg/algorithms.cc: show debug output only if debug option is given X-Git-Tag: 0.8.3~3^2~2^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/24e936625600312682a34872a2425f3382f3df2f?ds=sidebyside apt-pkg/algorithms.cc: show debug output only if debug option is given --- diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index d9e0d2f81..bd9a9df62 100644 --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@ -998,9 +998,10 @@ bool pkgProblemResolver::Resolve(bool BrokenFix) */ if (Cache[Pkg].CandidateVerIter(Cache) != Ver) { - clog << " Version " << Ver.VerStr() << " for " - << Pkg.Name() << " is not a candidate, ignoring" - << endl; + if (Debug) + clog << " Version " << Ver.VerStr() << " for " + << Pkg.Name() << " is not a candidate, ignoring" + << endl; continue; }