]> git.saurik.com Git - apt.git/commitdiff
do not unconditional print the new debugoutput for "FixByInstall"
authorDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 13 Aug 2010 23:21:50 +0000 (01:21 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Fri, 13 Aug 2010 23:21:50 +0000 (01:21 +0200)
apt-pkg/algorithms.cc

index 5641869ab8cc995491c34681f565f3ab621f1a47..3c8711b7443bdaa497f00e9bafe83815db50c3a6 100644 (file)
@@ -1052,7 +1052,8 @@ bool pkgProblemResolver::Resolve(bool BrokenFix)
                              solving this dependency. This helps every time a previous solver
                              is removed by the resolver because of a conflict or alike but it is
                              dangerous as it could trigger new breaks/conflicts… */
-                          std::cout << "  Try Installing " << Start.TargetPkg() << " before changing " << I.FullName(false) << std::endl;
+                          if (Debug == true)
+                             clog << "  Try Installing " << Start.TargetPkg() << " before changing " << I.FullName(false) << std::endl;
                           unsigned long const OldBroken = Cache.BrokenCount();
                           Cache.MarkInstall(Start.TargetPkg(), true, 1, false);
                           // FIXME: we should undo the complete MarkInstall process here