[Debconf-devel] Bug#668129: /usr/bin/apt-get: apt-get + quiet + ouput to non-terminal = control characters

Jayen Ashar j__n at yahoo.com
Tue Apr 10 23:07:06 UTC 2012


On 11/04/12 01:42, David Kalnischkies wrote:
> reassign 668129 debconf
> thanks
> 
> On Mon, Apr 9, 2012 at 04:32, Jayen Ashar <j__n at yahoo.com> wrote:
>>   * What led up to the situation?
>> Running `/usr/bin/apt-get -o quiet=1 dist-upgrade -y --no-download -q -u`
>>
>>   * What exactly did you do (or not do) that was effective (or
>>     ineffective)?
>> Piping output to another command.  Enabling quiet from the command line.
>>
>>   * What was the outcome of this action?
>> Getting the line: ^MExtracting templates from packages: 26%^MExtracting
>> templates from packages: 52%^MExtracting templates from packages:
>> 78%^MExtracting templates from packages: 100%
>>
>>   * What outcome did you expect instead?
>> An output without control characters, especially because the output is
>> not a terminal.  Ideally, "Extracting templates from packages:" should
>> not appear when piping the output and/or when using quiet settings.
> [Â…]
>> -- apt-config dump --
> [Â…]
>> DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
>> DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
> [Â…]
> 
> The messages are generated by dpkg-preconfigure, not by apt-get.
> apt-get just acts on your configuration and executes it for you.
> I am not sure though how that should be fixedÂ…
> 
> 
> Best regards
> 
> David Kalnischkies

Thanks for reassigning

So, then, does debconf know that apt-get was called with quiet, or that
the output is not a terminal.  FYI, I have configured debconf to use the
Dialog frontend.

Thanks,
Jayen





More information about the Debconf-devel mailing list