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

Re: command -v in postinsts violating policy



On Mon, May 27, 2002 at 01:42:44PM +0200, Santiago Vila wrote:
> We could do
> 
> install-docs whatever-args 2> /dev/null || true
> 
> directly. If install-docs exists, it will work. If it does not, it
> will not.

This fails to distinguish between install-docs failing because it
encountered an error (in which case the postinst may want to exit
non-zero too) and install-docs failing because it does not exist (in
which case the postinst probably wants to continue).

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]


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



Reply to: