Forráskód Böngészése

apt-pkg/algorithms.cc: show debug output only if debug option is given

Michael Vogt 16 éve
szülő
commit
24e9366256
1 módosított fájl, 4 hozzáadás és 3 törlés
  1. 4 3
      apt-pkg/algorithms.cc

+ 4 - 3
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;
                }