aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-10-23 13:48:14 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-10-23 13:48:14 +0000
commit698a7cde76866270cc448e4dc3afe70d726c3c8f (patch)
tree0ed01fc875dbc247e2ae92551af5a03ad8af204d
parent7229e804c53a2c824398c0a70a4d6b6adf9c4f98 (diff)
downloadpaludis-698a7cde76866270cc448e4dc3afe70d726c3c8f.tar.gz
paludis-698a7cde76866270cc448e4dc3afe70d726c3c8f.tar.xz
Display more tag information
-rw-r--r--src/paludis/install.cc24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/paludis/install.cc b/src/paludis/install.cc
index 5de8260..52f0f41 100644
--- a/src/paludis/install.cc
+++ b/src/paludis/install.cc
@@ -47,6 +47,26 @@ using std::endl;
namespace
{
+ struct ShortTagDisplayer :
+ DepTagVisitorTypes::ConstVisitor
+ {
+ std::string text;
+
+ void visit(const GLSADepTag * const tag)
+ {
+ text = tag->short_text();
+ }
+
+ void visit(const DependencyDepTag * const)
+ {
+ }
+
+ void visit(const GeneralSetDepTag * const tag)
+ {
+ text = tag->short_text() + "<" + tag->source() + ">";
+ }
+ };
+
struct TagDisplayer :
DepTagVisitorTypes::ConstVisitor
{
@@ -519,7 +539,9 @@ namespace
continue;
_all_tags.insert(*tag);
- tag_titles.append(tag->tag->short_text());
+ ShortTagDisplayer t;
+ tag->tag->accept(&t);
+ tag_titles.append(t.text);
tag_titles.append(", ");
}
if (! tag_titles.empty())