aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-19 18:39:37 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-19 18:39:37 +0100
commit86ec24031e3178a56dbc381916704dc0aba5bf75 (patch)
treea4cc2069f5e62a44cb74dcd3712a8033da6ba73f
parent569f1766e8fe4a2a16f20894b6530cb1b86f4d48 (diff)
downloadpaludis-86ec24031e3178a56dbc381916704dc0aba5bf75.tar.gz
paludis-86ec24031e3178a56dbc381916704dc0aba5bf75.tar.xz
Show active dependency labels
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc3
-rw-r--r--src/clients/cave/cmd_resolve_dump.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index fa1019f..2d8e51f 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -241,7 +241,8 @@ namespace
std::pair<std::string, Tribool> visit(const DependentReason & r) const
{
- return std::make_pair("dependent upon " + stringify(*r.dependent_upon().package_id()), true);
+ return std::make_pair("dependent upon " + stringify(*r.dependent_upon().package_id())
+ + " (" + r.dependent_upon().active_dependency_labels_as_string() + ")", true);
}
std::pair<std::string, Tribool> visit(const WasUsedByReason & r) const
diff --git a/src/clients/cave/cmd_resolve_dump.cc b/src/clients/cave/cmd_resolve_dump.cc
index d0becbd..c77c155 100644
--- a/src/clients/cave/cmd_resolve_dump.cc
+++ b/src/clients/cave/cmd_resolve_dump.cc
@@ -183,7 +183,8 @@ namespace
void visit(const DependentReason & r)
{
- str = "Dependent(" + stringify(*r.dependent_upon().package_id()) + ")";
+ str = "Dependent(" + stringify(*r.dependent_upon().package_id()) + ", " +
+ r.dependent_upon().active_dependency_labels_as_string() + ")";
}
void visit(const WasUsedByReason & r)