aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-24 19:23:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-24 19:23:26 +0000
commit720d402669bd805a8ecff27596a9783f6b2bd383 (patch)
tree444ca65122edce6a901fe11788d6f3d95f12c612
parent030f50eb919fee0d075a406c67963505e75e9ccf (diff)
downloadpaludis-720d402669bd805a8ecff27596a9783f6b2bd383.tar.gz
paludis-720d402669bd805a8ecff27596a9783f6b2bd383.tar.xz
Only show use descriptions for --pretend
-rw-r--r--src/paludis/install.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/paludis/install.cc b/src/paludis/install.cc
index e685f05..dce26ea 100644
--- a/src/paludis/install.cc
+++ b/src/paludis/install.cc
@@ -71,6 +71,9 @@ namespace
virtual bool want_install_reasons() const
{
+ if (! CommandLine::get_instance()->a_pretend.specified())
+ return false;
+
return "full" == CommandLine::get_instance()->a_show_install_reasons.argument() ||
"summary" == CommandLine::get_instance()->a_show_install_reasons.argument();
}