postinst errors

From: Russell Nelson <nelson_at_crynwr.com>
Date: Mon, 29 Jul 2002 13:30:23 -0400 (EDT)

Hrm. This postinst code is wrong:

#!/bin/sh
set -e
[ -x /usr/bin/update-menus ] && /usr/bin/update-menus

If the -x fails, then that is the current return code, and it becomes
the return code for the entire script, which is not right. It needs
"exit 0" at the end of it. I guess I ought to 1) download all the
packages, 2) find and fix all the offending scripts, 3) upload those
packages, and 4) auto-whine at all the maintainers to fix it in their
sources. but that's too much like work. If I could actually succeed
in getting the maintiners to fix their code, that would be one thing.
but you KNOW that that contribution would be destroyed in short order.

Sigh. So I'll just ask everybody to look at their postinst script and
add "exit 0" at the end. BTW, pygps lacks the exit 0.

-- 
-russ nelson              http://russnelson.com |  New Internet Acronym:
Crynwr sells support for free software  | PGPok |
521 Pleasant Valley Rd. | +1 315 268 1925 voice |         IANAE
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |  I Am Not An Economist
Received on Mon Jul 29 2002 - 17:30:25 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:13:09 EDT