aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/user_dep_spec.cc')
-rw-r--r--paludis/user_dep_spec.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/paludis/user_dep_spec.cc b/paludis/user_dep_spec.cc
index 988ed8a27..973a5b78b 100644
--- a/paludis/user_dep_spec.cc
+++ b/paludis/user_dep_spec.cc
@@ -793,7 +793,7 @@ UserKeyRequirement::requirement_met(
const Environment * const env,
const ChangedChoices * const,
const std::shared_ptr<const PackageID> & id,
- const std::shared_ptr<const PackageID> &,
+ const std::shared_ptr<const PackageID> & from_id,
const ChangedChoices * const) const
{
Context context("When working out whether '" + stringify(*id) + "' matches " + as_raw_string() + ":");
@@ -873,19 +873,19 @@ UserKeyRequirement::requirement_met(
}
if (! key)
- return std::make_pair(false, as_human_string());
+ return std::make_pair(false, as_human_string(from_id));
if (_imp->op == '?')
- return std::make_pair(true, as_human_string());
+ return std::make_pair(true, as_human_string(from_id));
else
{
KeyComparator c(env, id, _imp->value, _imp->op);
- return std::make_pair(key->accept_returning<bool>(c), as_human_string());
+ return std::make_pair(key->accept_returning<bool>(c), as_human_string(from_id));
}
}
const std::string
-UserKeyRequirement::as_human_string() const
+UserKeyRequirement::as_human_string(const std::shared_ptr<const PackageID> &) const
{
std::string key_str;
if ((! _imp->key.empty()) && (_imp->key.at(0) == '$'))