]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.cc
merge with my debian-sid branch
[apt.git] / apt-pkg / algorithms.cc
index 4c2ea0f2da9e89501a66832e4ac670e4cc789e5e..f7a333606e572332d46ec73bb454d846b713de56 100644 (file)
@@ -1220,16 +1220,23 @@ bool pkgProblemResolver::ResolveInternal(bool const 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;
 }
                                                                        /*}}}*/