Procházet zdrojové kódy

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

Michael Vogt před 16 roky
rodič
revize
24e9366256
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  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;
                }