On 17 March 2013 09:18, Daniel Hartwig <[email protected]> wrote: > On 16 March 2013 23:04, Serafeim Zanikolas <[email protected]> wrote: >> On Sat, Mar 16, 2013 at 10:32:40PM +0800, Daniel Hartwig wrote: >>> Right. Apt-listbugs is effectively called in the same context as >>> maintainer scripts, and those are not guaranteed to have an >>> interactive shell. The program must be smart enough to detect this >>> and do the right thing (I'm not sure if it already does :-). >> >> By default, apt-listbugs relies on /dev/tty, but that can be overriden via >> the >> APT_LISTBUGS_FRONTEND env variable. The only valid frontend alternative at >> the >> moment is "none", which makes apt-listbugs a noop (to avoid hanging when >> invoked non-interactively). The idea would be to add a "programmatic" or so >> frontend, which would rely on some form of IPC instead of the terminal.
Debconf may provide a suitable interface there, as well as supporting: > Actually, I was refering to the standard frontend just not seeking > input when it is not connected to an interactive terminal. This would > be, for example, displaying the list of bugs and proceeding, or some > other configurable action depending on the severity, etc.. This is > the same as maintainer scripts behave: with sensible defaults in the > non-interactive case. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

