On Tue, 2023-11-07 at 12:10 +0100, Alexandre Detiste wrote:

> how-can-i-help: should detect that is run by unattended-upgrades & skip
> Possible solution: skip execution if STDIN is not a TTY.

I filter and then read my unattended-upgrades mails, so
this would break my normal usage of how-can-i-help output.

> When running unattended-upgrades (from it's .timer/.service),
> how-can-i-help will be called so many times
> and that will clutter logs.

unattended-upgrades should only call how-can-i-help once per upgrade,
unless you have the minimal steps option enabled?

The log clutter could be solved by not printing the header/footer
unless there are some help items to be printed too.

> But the next time apt is run interractively,
> it won't display new "tasks" again,
> becauses they are not considered new anymore.

Perhaps there could be options to mark or not mark the newly discovered
problems as new, then folks could customise the apt hook as needed.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to