apt-pkg/algorithms.cc: show debug output only if debug option is given
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 31 Aug 2010 11:32:50 +0000 (13:32 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 31 Aug 2010 11:32:50 +0000 (13:32 +0200)
apt-pkg/algorithms.cc

index d9e0d2f..bd9a9df 100644 (file)
@@ -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;
                }