Debhelper-generated postinst and prerm vs. manual one
Andreas Metzler
ametzler at downhill.at.eu.org
Fri Oct 20 17:20:57 UTC 2006
On 2006-10-20 Fabian Fagerholm <fabbe at paniq.net> wrote:
> On Fri, 2006-10-20 at 10:59 +0300, Fabian Fagerholm wrote:
> +# Exit with failure message if the package is not installed
> +if [ -x "$DAEMON" ]; then
> + log_failure_msg "Could not start $NAME: $DAEMON does not exist."
> + exit $EXIT_ERROR_CODE
> fi
> Obviously, that test should be negated.
Hello,
Logging an error is just wrong, the package should not show spurious
warnings in the unistalled (but not purged) state.
I disagree that it should exit with an error in that scenario.
Best (common) practice on debian is this:
test -x "$DAEMON" || exit 0
Every single daemon package I have installed here uses this algoritm
and it is what policy 9.3.2 suggest, too.
cu andreas
--
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken. (c) Jasper Ffforde
More information about the Pkg-cyrus-sasl2-debian-devel
mailing list