aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/destination_utils.cc
diff options
context:
space:
mode:
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 7097e8784..1c16d63aa 100644
--- a/paludis/resolver/destination_utils.cc
+++ b/paludis/resolver/destination_utils.cc
@@ -39,6 +39,14 @@ paludis::resolver::can_make_binary_for(const std::shared_ptr<const PackageID> &
}
bool
+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");
+}
+
+bool
paludis::resolver::can_chroot(const std::shared_ptr<const PackageID> & id)
{
if (! id->behaviours_key())