* algorithms.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 17 Oct 2011 14:41:54 +0000 (16:41 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 17 Oct 2011 14:41:54 +0000 (16:41 +0200)
  - show a debug why a package was kept by ResolveByKeep()

apt-pkg/algorithms.cc
debian/changelog

index 6ac6903..44cba8d 100644 (file)
@@ -1188,16 +1188,23 @@ bool pkgProblemResolver::Resolve(bool BrokenFix)
 */
 bool pkgProblemResolver::InstOrNewPolicyBroken(pkgCache::PkgIterator I)
 {
-   
    // a broken install is always a problem
    if (Cache[I].InstBroken() == true)
+   {
+      if (Debug == true)
+        std::clog << "  Dependencies are not satisfied for " << I << std::endl;
       return true;
+   }
 
    // a newly broken policy (recommends/suggests) is a problem
    if (Cache[I].NowPolicyBroken() == false &&
        Cache[I].InstPolicyBroken() == true)
+   {
+      if (Debug == true)
+        std::clog << "  Policy breaks with upgrade of " << I << std::endl;
       return true;
-       
+   }
+
    return false;
 }
 
index bf3b15e..ef40274 100644 (file)
@@ -1,3 +1,11 @@
+apt (0.8.15.9+nmu1) unstable; urgency=low
+
+  [ David Kalnischkies ]
+  * algorithms.cc:
+    - show a debug why a package was kept by ResolveByKeep()
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 17 Oct 2011 16:36:22 +0200
+
 apt (0.8.15.9) unstable; urgency=low
 
   [ David Kalnischkies ]