aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2007-12-25 22:05:03 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2007-12-25 22:05:03 +0000
commit3eb0a9038524478d7915e31e38166c02a3fd313c (patch)
tree8861ba3e5bc4f2d171891e80162e10ed15f39439
parentc513347286faf9d87880ee3923cef694684602a8 (diff)
downloadpaludis-3eb0a9038524478d7915e31e38166c02a3fd313c.tar.gz
paludis-3eb0a9038524478d7915e31e38166c02a3fd313c.tar.xz
Don't show suggestions for target dependencies.
-rw-r--r--src/output/console_install_task.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/output/console_install_task.cc b/src/output/console_install_task.cc
index 03100bb..84b15eb 100644
--- a/src/output/console_install_task.cc
+++ b/src/output/console_install_task.cc
@@ -34,6 +34,7 @@
#include <paludis/util/fd_output_stream.hh>
#include <paludis/util/system.hh>
#include <paludis/util/iterator_funcs.hh>
+#include <paludis/util/visitor_cast.hh>
#include <paludis/query.hh>
#include <paludis/action.hh>
#include <paludis/repository.hh>
@@ -1483,7 +1484,8 @@ ConsoleInstallTask::on_all_masked_error(const AllMaskedError & e)
output_stream() << " * " << e.backtrace("\n * ");
output_stream() << "No versions of '" << e.query() << "' are available.";
- if (want_suggestions())
+ if (want_suggestions()
+ && e.query().tag() && visitor_cast<const TargetDepTag>(*e.query().tag()))
{
output_stream() << " Looking for suggestions:" << endl;