<div dir="ltr"><div><div><div>Hi, <br><br></div></div>I personally think that the "-v" solution as you mentioned is good enough, cause most users don't care these "recommend" or "suggestion" messages, even "installed" things, they just want a "out of box" application. For people want specific information, like me, "-v" would be a smart thing.<br>
<br></div>At this moment, it seems that I have to apply this patch manually to get a "custom aptitude". <br><div><br>Thanks for your information and patch !<br><br><div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-02-09 9:05 GMT+08:00 Manuel A. Fernandez Montecelo <span dir="ltr"><<a href="mailto:manuel.montezelo@gmail.com" target="_blank">manuel.montezelo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
forcemerge 647474 720074<br>
severity 647474 minor<br>
owner 647474 !<br>
tags 647474 + patch moreinfo<br>
stop<br>
<br>
Hi,<br>
<br>
The problem was introduced here in 2007, after a feature request which<br>
was previously implemented in Ubuntu:<br>
<br>
  <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=452202" target="_blank">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=452202</a><br>
<br>
<br>
The basic problem is that showing the recommends in command line mode<br>
depends on the option "Quiet" (which can be set by "-q" in the command<br>
line, or "-o Quiet=integer").<br>
<br>
It turns out that in src/main.cc, this option is set up automatically<br>
to a positive number if the output is not a tty (the case of pipes or<br>
redirections), even if the user didn't request it through the command<br>
line explicitly:<br>
<br>
  int curr_quiet = aptcfg->FindI("quiet", 0);<br>
  if(seen_quiet)<br>
    aptcfg->SetNoUser("quiet", quiet);<br>
  if(quiet == 0 && !isatty(1))<br>
    aptcfg->SetNoUser("quiet", std::max(curr_quiet, 1));<br>
<br>
<br>
The code above cannot be "fixed", since the "progress" operations<br>
depend on this to work correctly.<br>
<br>
I created the patch, attached.  The solution is not very good for my<br>
taste, but Daniel Burrows solved it in this way, attaching this<br>
message to the "Quiet" option (which doesn't happen for any other<br>
output than progress-like), so this is the quick and dirty fix chaning<br>
behaviour minimally and fixing this problem.<br>
<br>
I say minimally because I don't think that users will rely (and thus,<br>
complain if changes behaviour) on something as subtle as setting the<br>
option -q explicitly while using pipes/redirection for other reasons,<br>
to specifically avoid printing this message.<br>
<br>
My prefered solution would be to do like with<br>
Suggests-Will-Not-Install, that is, only show<br>
Recommended-Will-Not-Install if verbose>0 (as the patch from Ubuntu,<br>
but Daniel Burrows didn't like the solution, and I don't know why).<br>
Or alternatively, show it inconditionally (which probably users didn't<br>
like, and that's why Ubuntu implemented a solution).<br>
<br>
Opinions?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Manuel A. Fernandez Montecelo <<a href="mailto:manuel.montezelo@gmail.com">manuel.montezelo@gmail.com</a>><br>
</font></span></blockquote></div><br></div>