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-02-01 16:54:54 +0000
commit0826d7a9ec366fd2cddd6a9b86e92b8c4f943fbb (patch)
treea68edaf549548834f68c8fd430df477061e5d038
parente4e8cbccc27da42d281ba9fa86029e324c179a61 (diff)
downloadpaludis-0826d7a9ec366fd2cddd6a9b86e92b8c4f943fbb.tar.gz
paludis-0826d7a9ec366fd2cddd6a9b86e92b8c4f943fbb.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 dbb12adf6..029a6b729 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);