From 24e936625600312682a34872a2425f3382f3df2f Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 31 Aug 2010 13:32:50 +0200 Subject: apt-pkg/algorithms.cc: show debug output only if debug option is given --- apt-pkg/algorithms.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apt-pkg') 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; } -- cgit v1.2.3