[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bug #23953 ae: postinst does not check for errors



Dale Scheetz <dwarf@polaris.net> writes:

> > If update-alternatives fails, the install should *not* succeed.
>  
> And why not? The update-alternatives failure does not impact the
> further correct installation of the ae package, and after the
> install ae will function completely as expected when called as
> "ae". The fact that editor will not envoke the ae editor is, at this
> point, unavoidable, but not any reason to reject the rest of the
> install process.

It's not reason to reject the rest of the install process (and that
isn't the result of set -e in the postinst), it is however reason to
tell dpkg that something went wrong with configuring ae.  Hiding that
is plain wrong.  postinst's are like unix scripts, and an exit code of
0 means success.  If update-alternatives failed and the editor
alternative is hosed, the postinst did not succeeded and should not
pretend it did.

-- 
James
~Yawn And Walk North~                                  http://yawn.nocrew.org/


--  
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: