aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/myoptions_requirements_verifier.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/myoptions_requirements_verifier.cc')
-rw-r--r--paludis/repositories/e/myoptions_requirements_verifier.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/paludis/repositories/e/myoptions_requirements_verifier.cc b/paludis/repositories/e/myoptions_requirements_verifier.cc
index a82c8fee2..6105e52e4 100644
--- a/paludis/repositories/e/myoptions_requirements_verifier.cc
+++ b/paludis/repositories/e/myoptions_requirements_verifier.cc
@@ -147,6 +147,20 @@ MyOptionsRequirementsVerifier::verify_one(
for (auto m(annotations->begin()), m_end(annotations->end()) ;
m != m_end ; ++m)
{
+ switch (m->kind())
+ {
+ case dsak_synthetic:
+ case dsak_expanded:
+ case dsak_literal:
+ break;
+
+ case dsak_expandable:
+ continue;
+
+ case last_dsak:
+ throw InternalError(PALUDIS_HERE, "bad dsak");
+ }
+
switch (m->role())
{
case dsar_myoptions_requires: