summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/algorithms.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index 6131ecd11..72184748a 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -1423,6 +1423,9 @@ bool pkgProblemResolver::ResolveByKeepInternal()
delete[] PList;
+ if (Cache.BrokenCount() != 0)
+ return _error->Error(_("Unable to correct problems, you have held broken packages."));
+
if (Debug)
Cache.CheckConsistency("keep done");