aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-29 20:26:11 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-29 20:26:15 +0000
commit909c8d666c47890f2f8063db0ccdb55fffca5458 (patch)
tree5bedaa9ab40b2f2d0c1d4d251207eade9e438856
parent6c231c4ca737ef368d5c0d42a19cb80737a682c0 (diff)
downloadpaludis-909c8d666c47890f2f8063db0ccdb55fffca5458.tar.gz
paludis-909c8d666c47890f2f8063db0ccdb55fffca5458.tar.xz
Show (sug), (rec) for suggested / recommended reasons
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index a9ef2af..1a39837 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -217,7 +217,15 @@ namespace
const auto & cs(*r.sanitised_dependency().active_dependency_labels_classifier());
if (cs.includes_buildish && ! cs.includes_non_post_runish && ! cs.includes_post &&
! cs.includes_non_test_buildish)
- ts = " (test)";
+ ts.append(" (test)");
+
+ if (! cs.is_requirement)
+ {
+ if (cs.is_recommendation)
+ ts.append(" (rec)");
+ else if (cs.is_suggestion)
+ ts.append(" (sug)");
+ }
return annotate(r.sanitised_dependency().spec().if_package()->maybe_annotations(),
std::make_pair(stringify(r.from_id()->name()) + ts, false), false);