aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-03-08 11:43:23 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-03-08 11:43:23 +0000
commita1f50b15a22d07b7c56246a9c5173eb625560ab1 (patch)
treeb0ed8299ae28ba9c9ff53fccc0393690b6f3d439
parent87e8dbe0c0dab386965d8a2e94280c5a83bd3a14 (diff)
downloadpaludis-a1f50b15a22d07b7c56246a9c5173eb625560ab1.tar.gz
paludis-a1f50b15a22d07b7c56246a9c5173eb625560ab1.tar.xz
Use DependentReason
-rw-r--r--paludis/resolver/resolver_test.cc2
-rw-r--r--src/clients/cave/resolve_common.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/paludis/resolver/resolver_test.cc b/paludis/resolver/resolver_test.cc
index a41482b..010678d 100644
--- a/paludis/resolver/resolver_test.cc
+++ b/paludis/resolver/resolver_test.cc
@@ -311,7 +311,7 @@ paludis::resolver::resolver_test::get_constraints_for_dependent_fn(
for (PackageIDSequence::ConstIterator i(ids->begin()), i_end(ids->end()) ;
i != i_end ; ++i)
{
- const std::tr1::shared_ptr<PresetReason> reason(new PresetReason("dependent " + stringify(**i), make_null_shared_ptr()));
+ const std::tr1::shared_ptr<DependentReason> reason(new DependentReason(*i));
result->push_back(make_shared_ptr(new Constraint(make_named_values<Constraint>(
value_for<n::destination_type>(dt_install_to_slash),
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index 8242cc6..69c3423 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -1234,7 +1234,7 @@ namespace
for (PackageIDSequence::ConstIterator i(ids->begin()), i_end(ids->end()) ;
i != i_end ; ++i)
{
- const std::tr1::shared_ptr<PresetReason> reason(new PresetReason("dependent " + stringify(**i), make_null_shared_ptr()));
+ const std::tr1::shared_ptr<DependentReason> reason(new DependentReason(*i));
result->push_back(make_shared_ptr(new Constraint(make_named_values<Constraint>(
value_for<n::destination_type>(dt_install_to_slash),