aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/destination_utils.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-12 14:28:03 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-12 14:45:22 +0100
commit120c58323950219e16d8fe22693af221d2887f9b (patch)
tree2df48534abea1af807750dbbd0ce3ac9922bd44b /paludis/resolver/destination_utils.cc
parent271074eb112e276d5ba25f91785431911ee3443f (diff)
downloadpaludis-120c58323950219e16d8fe22693af221d2887f9b.tar.gz
paludis-120c58323950219e16d8fe22693af221d2887f9b.tar.xz
MetadataKey value -> parse_value
Diffstat (limited to 'paludis/resolver/destination_utils.cc')
-rw-r--r--paludis/resolver/destination_utils.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/paludis/resolver/destination_utils.cc b/paludis/resolver/destination_utils.cc
index 85f78a838..0e42da8e6 100644
--- a/paludis/resolver/destination_utils.cc
+++ b/paludis/resolver/destination_utils.cc
@@ -38,7 +38,8 @@ paludis::resolver::can_make_binary_for(const std::shared_ptr<const PackageID> &
{
if (! id->behaviours_key())
return true;
- return id->behaviours_key()->value()->end() == id->behaviours_key()->value()->find("unbinaryable");
+ auto v(id->behaviours_key()->parse_value());
+ return v->end() == v->find("unbinaryable");
}
bool
@@ -46,7 +47,8 @@ paludis::resolver::is_already_binary(const std::shared_ptr<const PackageID> & id
{
if (! id->behaviours_key())
return false;
- return id->behaviours_key()->value()->end() != id->behaviours_key()->value()->find("binary");
+ auto v(id->behaviours_key()->parse_value());
+ return v->end() != v->find("binary");
}
bool
@@ -54,7 +56,8 @@ paludis::resolver::can_chroot(const std::shared_ptr<const PackageID> & id)
{
if (! id->behaviours_key())
return true;
- return id->behaviours_key()->value()->end() == id->behaviours_key()->value()->find("unchrootable");
+ auto v(id->behaviours_key()->parse_value());
+ return v->end() == v->find("unchrootable");
}
namespace
@@ -102,10 +105,10 @@ paludis::resolver::destination_filtered_generator(
switch (t)
{
case dt_install_to_slash:
- return g | filter::InstalledAtRoot(env->system_root_key()->value());
+ return g | filter::InstalledAtRoot(env->system_root_key()->parse_value());
case dt_install_to_chroot:
- return g | filter::InstalledNotAtRoot(env->system_root_key()->value());
+ return g | filter::InstalledNotAtRoot(env->system_root_key()->parse_value());
case dt_create_binary:
return g & BinaryDestinationGenerator();