[Aptitude-devel] Bug#720074: Bug#647474: aptitude: When piping, stdout doesn't include "RECOMMENDED but will not be installed"

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Sun Feb 9 10:43:24 UTC 2014


2014-02-09 Daniel Hartwig <mandyke at gmail.com>:
>
>> I created the patch, attached.  The solution is not very good for my
>> taste, but Daniel Burrows solved it in this way, attaching this
>> message to the "Quiet" option (which doesn't happen for any other
>> output than progress-like), so this is the quick and dirty fix chaning
>> behaviour minimally and fixing this problem.
>>
>> I say minimally because I don't think that users will rely (and thus,
>> complain if changes behaviour) on something as subtle as setting the
>> option -q explicitly while using pipes/redirection for other reasons,
>> to specifically avoid printing this message.
>
> This presumes too much.  It is not possible to determine this
> quiet_because_of_pipe_or_redirection at the point it is introduced,
> using the test it does.

Yes, it presumes too much, that's what I say in the paragraphs above.
To me there seems to be no other way to fix this and maintain the
behaviour that Daniel Burrows wanted without changing a significant
amount of code, that I don't want to do now to not get in the way of
the wip-cmdline.

But as I also said, I think that the way in which Daniel Burrows
solved this at the time is the wrong way and that should have accepted
the "(verbose > 0)" from Ubuntu.  I don't understand why he didn't,
but I think that that's what we should do.


> In any case, resolved in wip-cmdline.

I still would like to solve this for the next release 0.6.8.5, better
with the "(verbose >= 0)" than with the patch above.  This is an
unintrusive change that should not get in the way of wip-cmdline.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list