aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-09 16:45:14 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-09 16:44:56 +0100
commit13ad158d7ac2de08bc81a9ca6cedfebbfcea8b0d (patch)
tree12595a438628c976e40a4b5400dd9c88936f0d0d
parent305a908ffacfbb06d471ac7eec43b8228d7a73f5 (diff)
downloadpaludis-13ad158d7ac2de08bc81a9ca6cedfebbfcea8b0d.tar.gz
paludis-13ad158d7ac2de08bc81a9ca6cedfebbfcea8b0d.tar.xz
nothing isn't fine if things are installed
-rw-r--r--paludis/resolver/resolver.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/paludis/resolver/resolver.cc b/paludis/resolver/resolver.cc
index f8d172d..47538a2 100644
--- a/paludis/resolver/resolver.cc
+++ b/paludis/resolver/resolver.cc
@@ -487,6 +487,13 @@ Resolver::_try_to_find_decision_for(const QPN_S & qpn_s,
break;
}
+ /* nothing is only fine if there's nothing installed in that qpn:s */
+ if (nothing_is_fine_too)
+ nothing_is_fine_too = (*_imp->env)[selection::SomeArbitraryVersion(
+ generator::Package(qpn_s.package()) |
+ qpn_s.make_slot_filter() |
+ filter::SupportsAction<InstalledAction>())]->empty();
+
if (nothing_is_fine_too)
return _decision_from_package_id(qpn_s, make_null_shared_ptr());