Przeglądaj źródła

show broken count when starting the resolver

Michael Vogt 13 lat temu
rodzic
commit
32b5dd08ac
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      apt-pkg/algorithms.cc

+ 6 - 2
apt-pkg/algorithms.cc

@@ -845,8 +845,10 @@ bool pkgProblemResolver::ResolveInternal(bool const BrokenFix)
    }
    }
    while (Again == true);
    while (Again == true);
 
 
-   if (Debug == true)
+   if (Debug == true) {
       clog << "Starting" << endl;
       clog << "Starting" << endl;
+      clog << " Broken count: " << Cache.BrokenCount() << endl;
+   }
    
    
    MakeScores();
    MakeScores();
 
 
@@ -874,8 +876,10 @@ bool pkgProblemResolver::ResolveInternal(bool const BrokenFix)
          }
          }
    }
    }
 
 
-   if (Debug == true)
+   if (Debug == true) {
       clog << "Starting 2" << endl;
       clog << "Starting 2" << endl;
+      clog << " Broken count: " << Cache.BrokenCount() << endl;
+   }
 
 
    /* Now consider all broken packages. For each broken package we either
    /* Now consider all broken packages. For each broken package we either
       remove the package or fix it's problem. We do this once, it should
       remove the package or fix it's problem. We do this once, it should