Gerrit Pape wrote on 04/07/2006 16:14:
> Package: spampd
> Version: 2.30-10
>
> Hi, the prerm fails with /bin/sh -> dash. This patch fixes it, but I
> would suggest to remove the function completly.
Weird, dash calls itself a POSIX shell, but it doesn't fully support
POSIX shell syntax. According to POSIX, functions are defined by
"[function] name () "... Where "function" is optional _for_the_user_, it
is not an optional shell feature.
I'm very tempted to reassign this to dash.
And removing it completely isn't possible since it is used to handle
certain errors which are perfectly fine if reported by an LSB compliant
init script, but which cause debhelper/dpkg to fail if they go unhandled.
Regards,
Sven
> --- debian/spampd.prerm
> +++ debian/spampd.prerm
> @@ -1,6 +1,6 @@
> #!/bin/sh -e
>
> -function handle_init_errs ()
> +handle_init_errs ()
> {
> RET=$?
> if [ "$RET" = "6" ]; then
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]