#149025 apt-listchanges: display nicer message on abort

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Laurent Bonnaud
Date:
2014-08-05 08:09:30 UTC
Severity:
wishlist
#149025#5
Date:
2002-06-04 15:49:08 UTC
From:
To:
Hi,

after looking at the changelogs, if the admin decides not to install the
updated packages, an ugly error message is displayed:

Reading changelogs... Done
apt-listchanges: Do you want to continue? [Y/n]? n
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -ne 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -ne 10

It might even scare some novice sysadmins.  So would it be possible to replace
it with something nicer such as "Installation aborted." ?

Would it require a change in apt ?

#149025#10
Date:
2002-06-04 16:39:07 UTC
From:
To:
reassign 149025 apt
thanks

Yes, these error messages come from apt.  Currently, the only way for
apt-listchanges to cause apt to abort is to return an error code, which
produces these messages.  In order for things to be different, apt would
have to provide some other way for a script to send this message.

I do not find this to be particularly important for apt-get, but a GUI would
probably want to handle this case differently than if there was a genuine
error.