diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-20 11:45:44 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-20 11:45:44 +0200 |
commit | 0a64ecd792b4caca519d597a69b8baeda6a1bf77 (patch) | |
tree | bc3dccc791d8246c3298674ddf318d56895f271d /apt-pkg | |
parent | f64b251f41a3fffc9d9d2ba00c415ca47b446e4b (diff) | |
parent | deec647438c6394d8d8398cba35412992f1babd5 (diff) | |
download | apt-0a64ecd792b4caca519d597a69b8baeda6a1bf77.tar.gz |
merged from donkult
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/algorithms.cc | 11 |
1 files changed, 9 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; } |