aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-22 13:22:55 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-22 13:22:55 +0000
commit4c07d2c49981b2494a23b9c25030e6d94db61c08 (patch)
treeb9b5d22e431f6b98e694d88f599b517c2aaaeb26
parent443339fa69ced5de0a6b202fc590e6a3ffbcdeab (diff)
downloadpaludis-4c07d2c49981b2494a23b9c25030e6d94db61c08.tar.gz
paludis-4c07d2c49981b2494a23b9c25030e6d94db61c08.tar.xz
Get replacing right for binaries
-rw-r--r--paludis/resolver/decider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/resolver/decider.cc b/paludis/resolver/decider.cc
index 8964963..1920c6e 100644
--- a/paludis/resolver/decider.cc
+++ b/paludis/resolver/decider.cc
@@ -548,7 +548,7 @@ Decider::_find_replacing(
for (PackageIDSequence::ConstIterator i(ids->begin()), i_end(ids->end()) ;
i != i_end ; ++i)
{
- if ((*i)->version() == id->version() || _same_slot(*i, id))
+ if ((*i)->version() == id->version() || (_same_slot(*i, id) && repo->installed_root_key()))
result->push_back(*i);
}
}