aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-19 18:28:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-19 18:28:00 +0000
commit03502000208af3c10298b9cff202e130c63df76d (patch)
tree52f581051ea4ea2c46b4c64fe45b5dcabdde7f6e
parent12d58c89b455c6b2b67aada5892ae25ff071f5bf (diff)
downloadpaludis-03502000208af3c10298b9cff202e130c63df76d.tar.gz
paludis-03502000208af3c10298b9cff202e130c63df76d.tar.xz
dsar_suggestions_group_name
-rw-r--r--paludis/dep_spec_annotations.se2
-rw-r--r--paludis/repositories/e/dep_parser.cc7
2 files changed, 9 insertions, 0 deletions
diff --git a/paludis/dep_spec_annotations.se b/paludis/dep_spec_annotations.se
index 1c5735f..17737c4 100644
--- a/paludis/dep_spec_annotations.se
+++ b/paludis/dep_spec_annotations.se
@@ -23,6 +23,8 @@ make_enum_DepSpecAnnotationRole()
key dsar_myoptions_n_at_most_one "MYOPTIONS, at most one"
key dsar_myoptions_n_exactly_one "MYOPTIONS, exactly one"
+ key dsar_suggestions_group_name "Group name for suggestions"
+
want_destringify
doxygen_comment << "END"
diff --git a/paludis/repositories/e/dep_parser.cc b/paludis/repositories/e/dep_parser.cc
index da5ea15..5f97d7f 100644
--- a/paludis/repositories/e/dep_parser.cc
+++ b/paludis/repositories/e/dep_parser.cc
@@ -412,6 +412,13 @@ namespace
role = dsar_myoptions_requires;
}
+ /* suggestions */
+ if (dsar_none == role)
+ {
+ if (k->first == eapi.supported()->annotations()->suggestions_group_name())
+ role = dsar_suggestions_group_name;
+ }
+
/* general */
if (dsar_none == role)
{