aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-08 16:16:32 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-08 16:16:32 +0000
commit26cdad7e7cd655655e06fc07eef74ab01d63250b (patch)
treef9934e7e7227fa3a430358a3ab1eb23c49d2cd17 /src/clients/cave
parentf1902e624313bd9f34b0e22eb567034242f3c25d (diff)
downloadpaludis-26cdad7e7cd655655e06fc07eef74ab01d63250b.tar.gz
paludis-26cdad7e7cd655655e06fc07eef74ab01d63250b.tar.xz
Refactor replacing logic into a helper
Diffstat (limited to 'src/clients/cave')
-rw-r--r--src/clients/cave/resolve_common.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index 2eb7c6431..1992599b2 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -71,6 +71,7 @@
#include <paludis/resolver/always_via_binary_helper.hh>
#include <paludis/resolver/can_use_helper.hh>
#include <paludis/resolver/confirm_helper.hh>
+#include <paludis/resolver/find_replacing_helper.hh>
#include <paludis/resolver/find_repository_for_helper.hh>
#include <paludis/resolver/get_constraints_for_dependent_helper.hh>
#include <paludis/resolver/get_constraints_for_purge_helper.hh>
@@ -710,6 +711,8 @@ paludis::cave::resolve_common(
else
confirm_helper.add_allowed_to_break_spec(parse_user_package_dep_spec(*i, env.get(), { updso_allow_wildcards }));
+ FindReplacingHelper find_replacing_helper(env.get());
+
FindRepositoryForHelper find_repository_for_helper(env.get());
GetConstraintsForDependentHelper get_constraints_for_dependent_helper(env.get());
@@ -940,6 +943,7 @@ paludis::cave::resolve_common(
n::always_via_binary_fn() = std::cref(always_via_binary_helper),
n::can_use_fn() = std::cref(can_use_helper),
n::confirm_fn() = std::cref(confirm_helper),
+ n::find_replacing_fn() = std::cref(find_replacing_helper),
n::find_repository_for_fn() = std::cref(find_repository_for_helper),
n::get_constraints_for_dependent_fn() = std::cref(get_constraints_for_dependent_helper),
n::get_constraints_for_purge_fn() = std::cref(get_constraints_for_purge_helper),