aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-19 16:48:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-19 16:48:51 +0000
commit12d58c89b455c6b2b67aada5892ae25ff071f5bf (patch)
treefa9394a143f301ad78c7d10be2e5af113a1b0feb
parent17b625c28f10fbc765f1a99af433da1e39a9253e (diff)
downloadpaludis-12d58c89b455c6b2b67aada5892ae25ff071f5bf.tar.gz
paludis-12d58c89b455c6b2b67aada5892ae25ff071f5bf.tar.xz
Use role rather than key
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index 14d45cd..a1f6e82 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -136,9 +136,9 @@ namespace
std::string get_annotation(
const std::shared_ptr<const DepSpecAnnotations> & annotations,
- const std::string & name)
+ const DepSpecAnnotationRole role)
{
- auto i(annotations->find(name));
+ auto i(annotations->find(role));
if (i == annotations->end())
return "";
@@ -171,7 +171,7 @@ namespace
std::pair<std::string, Tribool> result(unannotated);
- std::string description_annotation(get_annotation(key, "description"));
+ std::string description_annotation(get_annotation(key, dsar_general_description));
if (! description_annotation.empty())
{
result.first = result.first + ": \"" + description_annotation + "\"";