aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-10 21:07:41 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-10 21:07:41 +0100
commitae683564e1257e79096b5e4e0403a539bc073cc3 (patch)
tree821f32b7358ba2f0e2df5bdc91d0e84b26e291f5
parent02e0aa3aec60d8c6c7a90b1ec19c21b6ee11ca7e (diff)
downloadpaludis-ae683564e1257e79096b5e4e0403a539bc073cc3.tar.gz
paludis-ae683564e1257e79096b5e4e0403a539bc073cc3.tar.xz
then again maybe not
-rw-r--r--paludis/resolver/resolver.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/paludis/resolver/resolver.cc b/paludis/resolver/resolver.cc
index 6213cd0..0d83fdf 100644
--- a/paludis/resolver/resolver.cc
+++ b/paludis/resolver/resolver.cc
@@ -857,7 +857,13 @@ Resolver::_decision_from_package_id(const QPN_S & qpn_s, const std::tr1::shared_
std::tr1::shared_ptr<const PackageIDSequence> comparison_ids;
- if (! is_nothing)
+ if (is_installed)
+ comparison_ids = ((*_imp->env)[selection::BestVersionOnly(
+ generator::Package(qpn_s.package()) |
+ qpn_s.make_slot_filter() |
+ filter::SupportsAction<InstallAction>() |
+ filter::NotMasked())]);
+ else if (! is_nothing)
comparison_ids = ((*_imp->env)[selection::BestVersionOnly(
generator::Package(qpn_s.package()) |
qpn_s.make_slot_filter() |