aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/destination_utils.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-08 13:36:12 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-08 13:36:12 +0100
commit391a11571d99f0b9ccb030381c32dd9a36721f37 (patch)
treec28d61924211d4319fc38c46eabd3b4ed3db9fcb /paludis/resolver/destination_utils.cc
parent6f0d1e67b6042352af6662342bc3e98840d7892a (diff)
downloadpaludis-391a11571d99f0b9ccb030381c32dd9a36721f37.tar.gz
paludis-391a11571d99f0b9ccb030381c32dd9a36721f37.tar.xz
GetUseExistingNothingHelper
Diffstat (limited to 'paludis/resolver/destination_utils.cc')
-rw-r--r--paludis/resolver/destination_utils.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/paludis/resolver/destination_utils.cc b/paludis/resolver/destination_utils.cc
index 506706213..b58804a00 100644
--- a/paludis/resolver/destination_utils.cc
+++ b/paludis/resolver/destination_utils.cc
@@ -32,3 +32,11 @@ paludis::resolver::can_make_binary_for(const std::shared_ptr<const PackageID> &
return id->behaviours_key()->value()->end() == id->behaviours_key()->value()->find("unbinaryable");
}
+bool
+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");
+}
+