Hi,
On 2013-10-06 13:07:21 +0200, Francesco Poli wrote:
> On Sun, 6 Oct 2013 12:18:59 +0200 Vincent Lefevre wrote:
> > Though it can be re-added by the user, he (and apparently the
> > maintainer too) may not be aware of implications of the presence
> > or not of "|| exit 10". Indeed, unless there an error in the
> > documentation,
>
> Maybe the apt-listbugs(1) man page may be clarified further, but I am
> afraid it would become a little bit too verbose...
I think this can be done without too verbose. See below.
> > the "|| exit 10" is not redundant. The apt-listbugs(1)
> > man page says:
> >
> > EXIT CODE
> > 0 Success.
> >
> > 1 When something is wrong.
> >
> > 10 To warn APT not to proceed.
>
> This basically means: apt-listbugs ran correctly in apt mode, found RC
> bugs the user cares about, and the user told apt-listbugs he/she does
> *not* want to continue with the installation/upgrade.
> In other words, this exit status is specifically intended to cause the
> APT session to abort, but does not mean that apt-listbugs failed to run
> correctly.
This is how I understood it. But how it is said seems to mean that
the purpose of the value 10 is to tell APT not to proceed. I would
rather see something like:
10 The user chose to abort when bugs were listed. This non-zero
exit status will prevent APT from proceeding.
or
10 Some question was answered "no". This non-zero exit status
will prevent APT from proceeding.
BTW, above in the man page:
· -y, --force-yes Assumes that you select yes for all questions.
· -n, --force-no Assumes that you select no for all questions.
This option is assumed if stdout is not a terminal.
But if the man page doesn't say which kind of question is asked (like
"Do you want to continue?" or the opposite "Do you want to abort?"),
this is not very helpful. Is
Are you sure you want to install/upgrade the above packages?
the only question?
> Writing all this in the man page seems to be somewhat overly-verbose:
> hence the short summary is "To warn APT not to proceed."...
>
> >
> > 130 When a SIGINT was received (for instance because the user
> > pressed [Ctrl+C]).
> >
> [...]
> > Now, in case 1, something was wrong. One doesn't know whether the user
> > wants to install the packages, but he may miss RC bugs, and if apt
> > proceeds, this may be bad.
>
> Indeed, I agree that the APT session should abort in case apt-listbugs
> failed to run correctly (exit status == 1).
>
> But this is what would actually happen, as far as I know.
OK, the man page confused me (I also wonder then why the "|| exit 10"
was added in the first place).
--
Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]