aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/destination_utils.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-04 17:00:27 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-04 17:00:27 +0000
commitc3e09c0cec51503b68e03a2910e16237f79356dc (patch)
treec6f391b5bed2f5af85a9aee266d463c451de9713 /paludis/resolver/destination_utils.cc
parentc914953343b2f2712e7817588c414fe7af794cab (diff)
downloadpaludis-c3e09c0cec51503b68e03a2910e16237f79356dc.tar.gz
paludis-c3e09c0cec51503b68e03a2910e16237f79356dc.tar.xz
Use binary rather than unbinaryable for filtering origins
Fixes: ticket:1051
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())