aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-20 16:04:09 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-20 16:04:09 +0000
commit56e45f32d15205bad73d632bb2e7196169effac2 (patch)
tree79b7c83c6e8ed670fb28edaa4ad11c67750feb90
parent364172a60127620b8b9feeef3f071ad87d496a41 (diff)
downloadpaludis-56e45f32d15205bad73d632bb2e7196169effac2.tar.gz
paludis-56e45f32d15205bad73d632bb2e7196169effac2.tar.xz
Fix myoptions requirements
-rw-r--r--paludis/repositories/e/myoptions_requirements_verifier.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/repositories/e/myoptions_requirements_verifier.cc b/paludis/repositories/e/myoptions_requirements_verifier.cc
index eeac771..02b6a6a 100644
--- a/paludis/repositories/e/myoptions_requirements_verifier.cc
+++ b/paludis/repositories/e/myoptions_requirements_verifier.cc
@@ -304,17 +304,17 @@ MyOptionsRequirementsVerifier::visit(const PlainTextSpecTree::NodeType<AllDepSpe
children_s = "( " + children_s + " )";
- if (dsar_myoptions_n_at_least_one != m->role())
+ if (dsar_myoptions_n_at_least_one == m->role())
{
if (*_imp->number_enabled_stack.begin() < 1)
_imp->unmet_requirements->push_back("At least one of options " + children_s + " must be met");
}
- else if (dsar_myoptions_n_at_most_one != m->role())
+ else if (dsar_myoptions_n_at_most_one == m->role())
{
if (*_imp->number_enabled_stack.begin() > 1)
_imp->unmet_requirements->push_back("At most one of options " + children_s + " must be met");
}
- else if (dsar_myoptions_n_exactly_one != m->role())
+ else if (dsar_myoptions_n_exactly_one == m->role())
{
if (*_imp->number_enabled_stack.begin() != 1)
_imp->unmet_requirements->push_back("Exactly one of options " + children_s + " must be met");