aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-02 14:49:20 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-02 14:49:20 +0000
commitab60feb3a2491cda657f6f0228adf66b35367c8c (patch)
tree8e29b0215ba43c557201e350cabadd9c36dc2f58
parent3a6e488ea25a2d71324f156c34eb6ec67040d139 (diff)
downloadpaludis-ab60feb3a2491cda657f6f0228adf66b35367c8c.tar.gz
paludis-ab60feb3a2491cda657f6f0228adf66b35367c8c.tar.xz
Show which deps are just for tests
-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 3417d38..d55fdbc 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -214,8 +214,16 @@ namespace
false), false);
}
else
+ {
+ std::string ts;
+ 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)";
+
return annotate(r.sanitised_dependency().spec().if_package()->annotations_key(),
- std::make_pair(stringify(r.from_id()->name()), false), false);
+ std::make_pair(stringify(r.from_id()->name()) + ts, false), false);
+ }
}
}