summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-10-17 16:41:54 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-10-17 16:41:54 +0200
commitdeec647438c6394d8d8398cba35412992f1babd5 (patch)
treebc3dccc791d8246c3298674ddf318d56895f271d
parentf64b251f41a3fffc9d9d2ba00c415ca47b446e4b (diff)
* algorithms.cc:
- show a debug why a package was kept by ResolveByKeep()
-rw-r--r--apt-pkg/algorithms.cc11
-rw-r--r--debian/changelog8
2 files changed, 17 insertions, 2 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index 6ac69032b..44cba8d92 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -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;
}
diff --git a/debian/changelog b/debian/changelog
index bf3b15ef7..ef4027406 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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 ]