aboutsummaryrefslogtreecommitdiff
path: root/paludis/dep_spec.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-28 22:19:20 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-01 03:57:52 +0000
commit92f0a95d1854442e744f707eaae9add7fd92ff67 (patch)
tree9d403328a07f89c1598b4d3cb0079b292d82729e /paludis/dep_spec.cc
parent092228a814cd6700b97112b5dcf931c80b6b9431 (diff)
downloadpaludis-92f0a95d1854442e744f707eaae9add7fd92ff67.tar.gz
paludis-92f0a95d1854442e744f707eaae9add7fd92ff67.tar.xz
Pass env, id to ConditionalDepSpec members
Diffstat (limited to 'paludis/dep_spec.cc')
-rw-r--r--paludis/dep_spec.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/paludis/dep_spec.cc b/paludis/dep_spec.cc
index 6085ad1b1..5d88080b8 100644
--- a/paludis/dep_spec.cc
+++ b/paludis/dep_spec.cc
@@ -157,21 +157,24 @@ ConditionalDepSpec::~ConditionalDepSpec()
}
bool
-ConditionalDepSpec::condition_met() const
+ConditionalDepSpec::condition_met(const Environment * const env, const std::shared_ptr<const PackageID> & id) const
{
- return _imp->data->condition_met();
+ return _imp->data->condition_met(env, id);
}
bool
-ConditionalDepSpec::condition_would_be_met_when(const ChangedChoices & c) const
+ConditionalDepSpec::condition_would_be_met_when(
+ const Environment * const env,
+ const std::shared_ptr<const PackageID> & id,
+ const ChangedChoices & c) const
{
- return _imp->data->condition_would_be_met_when(c);
+ return _imp->data->condition_would_be_met_when(env, id, c);
}
bool
-ConditionalDepSpec::condition_meetable() const
+ConditionalDepSpec::condition_meetable(const Environment * const env, const std::shared_ptr<const PackageID> & id) const
{
- return _imp->data->condition_meetable();
+ return _imp->data->condition_meetable(env, id);
}
const std::shared_ptr<const ConditionalDepSpecData>