#1055496 how-can-i-help: should detect that is run by unattended-upgrades & skip

#1055496#5
Date:
2023-11-07 11:10:36 UTC
From:
To:
Hi,

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

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


Possible solution: skip execution if STDIN is not a TTY.

Greetings.
----------------------------------------------------
Dépaquetage de libjs-xterm (5.3.0-2) sur (3.8.1+~cs0.9.0-1) ...
Paramétrage de libjs-xterm (5.3.0-2) ...
======  How can you help?  (doc: https://wiki.debian.org/how-can-i-help ) ======
----- Show old opportunities as well as new ones: how-can-i-help --old ----- ====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) ====== Log started: 2023-11-07 12:07:47 apt-listchanges : Lecture des fichiers de modifications (« changelog »)... apt-listchanges : Lecture des fichiers de modifications (« changelog »)... (Lecture de la base de données... 346273 fichiers et répertoires déjà installés.) Préparation du dépaquetage de .../libcjson1_1.7.16-2_amd64.deb ... Dépaquetage de libcjson1:amd64 (1.7.16-2) sur (1.7.16-1) ... Paramétrage de libcjson1:amd64 (1.7.16-2) ... Traitement des actions différées (« triggers ») pour libc-bin (2.37-12) ... ====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) ====== ----- Show old opportunities as well as new ones: how-can-i-help --old ----- ====== How can you help? (doc: https://wiki.debian.org/how-can-i-help ) ======
#1055496#10
Date:
2024-05-13 05:35:48 UTC
From:
To:
I filter and then read my unattended-upgrades mails, so
this would break my normal usage of how-can-i-help output.

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.

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.