aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-10 09:05:00 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-10 01:54:23 +0100
commitf068881f850b60ec2df615e8d518df88b1ec7ebe (patch)
tree88936624bee3ff83e5eb623e36e99db49410fcb1
parent84daa318b72accbd8ee7e92654a4803fa2e37eb7 (diff)
downloadpaludis-f068881f850b60ec2df615e8d518df88b1ec7ebe.tar.gz
paludis-f068881f850b60ec2df615e8d518df88b1ec7ebe.tar.xz
better destination finding
-rw-r--r--paludis/resolver/resolver.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/resolver/resolver.cc b/paludis/resolver/resolver.cc
index 6c92146..55da3ca 100644
--- a/paludis/resolver/resolver.cc
+++ b/paludis/resolver/resolver.cc
@@ -204,6 +204,9 @@ Resolver::_make_slash_destination_for(const QPN_S & qpn_s,
r_end(_imp->env->package_database()->end_repositories()) ;
r != r_end ; ++r)
{
+ if ((! (*r)->installed_root_key()) || ((*r)->installed_root_key()->value() != FSEntry("/")))
+ continue;
+
if ((*r)->destination_interface() && (*r)->destination_interface()->is_suitable_destination_for(
*resolution->decision()->if_package_id()))
{