summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-08-31 13:32:50 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-08-31 13:32:50 +0200
commit24e936625600312682a34872a2425f3382f3df2f (patch)
tree64bf2212e43223e2a277172405f9b74dadf12620
parent914cc8a4438fd4f8c060599fa1971b80236a016e (diff)
apt-pkg/algorithms.cc: show debug output only if debug option is given
-rw-r--r--apt-pkg/algorithms.cc7
1 files changed, 4 insertions, 3 deletions
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;
}