Selaa lähdekoodia

apt-pkg/packagemanager.cc: more debug output for debug::pkgPackageManager

Michael Vogt 16 vuotta sitten
vanhempi
commit
131418cfb2
2 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 5 0
      apt-pkg/packagemanager.cc
  2. 1 0
      doc/examples/configure-index

+ 5 - 0
apt-pkg/packagemanager.cc

@@ -338,6 +338,9 @@ bool pkgPackageManager::DepAdd(pkgOrderList &OList,PkgIterator Pkg,int Depth)
       return true;
       return true;
    if (List->IsFlag(Pkg,pkgOrderList::UnPacked) == false)
    if (List->IsFlag(Pkg,pkgOrderList::UnPacked) == false)
       return false;
       return false;
+
+   if (Debug) 
+      std::clog << OutputInDepth(Depth) << "DepAdd: " << Pkg.Name() << std::endl;
       
       
    // Put the package on the list
    // Put the package on the list
    OList.push_back(Pkg);
    OList.push_back(Pkg);
@@ -391,6 +394,8 @@ bool pkgPackageManager::DepAdd(pkgOrderList &OList,PkgIterator Pkg,int Depth)
       
       
       if (Bad == true)
       if (Bad == true)
       {
       {
+	 if (Debug) 
+	    std::clog << OutputInDepth(Depth) << "DepAdd FAILS on: " << Pkg.Name() << std::endl;
 	 OList.Flag(Pkg,0,pkgOrderList::Added);
 	 OList.Flag(Pkg,0,pkgOrderList::Added);
 	 OList.pop_back();
 	 OList.pop_back();
 	 Depth--;
 	 Depth--;

+ 1 - 0
doc/examples/configure-index

@@ -409,6 +409,7 @@ Debug
   pkgDPkgPM "false";
   pkgDPkgPM "false";
   pkgDPkgProgressReporting "false";
   pkgDPkgProgressReporting "false";
   pkgOrderList "false";
   pkgOrderList "false";
+  pkgPackageManager "false"; // OrderList/Configure debugging
   pkgAutoRemove "false";   // show information about automatic removes
   pkgAutoRemove "false";   // show information about automatic removes
   BuildDeps "false";
   BuildDeps "false";
   pkgInitialize "false";   // This one will dump the configuration space
   pkgInitialize "false";   // This one will dump the configuration space