diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-08-31 13:32:50 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-08-31 13:32:50 +0200 |
commit | 24e936625600312682a34872a2425f3382f3df2f (patch) | |
tree | 64bf2212e43223e2a277172405f9b74dadf12620 | |
parent | 914cc8a4438fd4f8c060599fa1971b80236a016e (diff) |
apt-pkg/algorithms.cc: show debug output only if debug option is given
-rw-r--r-- | apt-pkg/algorithms.cc | 7 |
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; } |