Adam Borowski writes:
> On Thu, Mar 24, 2016 at 12:03:31AM +0100, Robert Luberda wrote:
>> According to the apt-get man page the `-y' option causes it to run
>> non-interactively, and apt-listchanges has recently started honouring
>> this setting, as requested in bug #687443. That's why it forces the
>> "text" frontend and disables confirmation.
>
> This sounds wrong to me: the option -y is "assume-yes" rather than
> "noninteractive".
Let me quote the man page:
-y, --yes, --assume-yes
Automatic yes to prompts; assume "yes" as answer to all
prompts and run non-interactively.
So it is both "assume-yes" and "non-interactive".
However for truly non-interactive upgrades one needs to disable debconf
prompts as well, so I guess the value of DEBIAN_FRONTEND environment
variable could be checked as well, probably separately to the -y option.
>
> What about having a setting for apt-listchanges instead of piggybacking on a
> mostly unrelated apt-get option?
It is related, see https://bugs.debian.org/687443. However I can add an
option like --ignore-apt-assume to disable this behaviour.
Regards,
robert