summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-11-18 09:51:50 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-11-18 09:51:50 +0100
commitee7077b0133711c879312f74303e8486a2bb865d (patch)
tree1c9c74017fe14c9f92abade0a3b679e01e6c53c1 /apt-pkg/algorithms.cc
parent19a9616d1c19c4a053826585f969459d166e44f2 (diff)
parent5c246b99204e8ef32243ae42c5ca3a2dee54e59b (diff)
merged from debian-sid
Diffstat (limited to 'apt-pkg/algorithms.cc')
-rw-r--r--apt-pkg/algorithms.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index 961f5c2fa..9abb7a947 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -1062,6 +1062,7 @@ bool pkgProblemResolver::Resolve(bool BrokenFix)
else if (TryFixByInstall == true &&
Start.TargetPkg()->CurrentVer == 0 &&
Cache[Start.TargetPkg()].Delete() == false &&
+ (Flags[Start.TargetPkg()->ID] & ToRemove) != ToRemove &&
Cache.GetCandidateVer(Start.TargetPkg()).end() == false)
{
/* Before removing or keeping the package with the broken dependency