]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/packagemanager.cc: more debug output for debug::pkgPackageManager
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 16 Mar 2010 20:47:49 +0000 (21:47 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 16 Mar 2010 20:47:49 +0000 (21:47 +0100)
apt-pkg/packagemanager.cc
doc/examples/configure-index

index 491bff110b8938dd55d80427b673ac4848f32b8d..b747fa78a7b4904e945f2c26570df72b964b6e55 100644 (file)
@@ -338,6 +338,9 @@ bool pkgPackageManager::DepAdd(pkgOrderList &OList,PkgIterator Pkg,int Depth)
       return true;
    if (List->IsFlag(Pkg,pkgOrderList::UnPacked) == false)
       return false;
+
+   if (Debug) 
+      std::clog << OutputInDepth(Depth) << "DepAdd: " << Pkg.Name() << std::endl;
       
    // Put the package on the list
    OList.push_back(Pkg);
@@ -391,6 +394,8 @@ bool pkgPackageManager::DepAdd(pkgOrderList &OList,PkgIterator Pkg,int Depth)
       
       if (Bad == true)
       {
+        if (Debug) 
+           std::clog << OutputInDepth(Depth) << "DepAdd FAILS on: " << Pkg.Name() << std::endl;
         OList.Flag(Pkg,0,pkgOrderList::Added);
         OList.pop_back();
         Depth--;
index 233fa2b7d7b0ac69d4cc25b21066bfb4fcce95cf..133ce8e790c9c467c4259338c2088e99cb0711c2 100644 (file)
@@ -409,6 +409,7 @@ Debug
   pkgDPkgPM "false";
   pkgDPkgProgressReporting "false";
   pkgOrderList "false";
+  pkgPackageManager "false"; // OrderList/Configure debugging
   pkgAutoRemove "false";   // show information about automatic removes
   BuildDeps "false";
   pkgInitialize "false";   // This one will dump the configuration space