Package spampd
Tags 366362 + moreinfo
Thanks

Sven Mueller wrote on 08/05/2006 01:54:

> As you see, the invoke-rc.d result is somewhat ignored (well, the script
> exits cleanly when invoke-rc.d returned an error) by appending "|| exit
> 0". Therefore, dpkg shouldn't return an error during configuration.
> Could you please send me your /var/lib/dpkg/info/spampd.postinst?

Forget what I wrote. This is a problem I'm receiving from using
debhelper, which changed behaviour in 5.0.26 regarding this.

Hmm, the init script behaviour is correct though, according to LSB (it
returns 6, which means that the package is unconfigured).

Joey: What would you say I (or possibly you) should do here? Changing
the init script would violate an Etch release target (LSB 2.1
conformance). Not changing the init script would require a change in how
debhelper handles init script return codes.

function handle_init_returns ()
{
        if [ "$1" = "5" ] || [ "$2" = "6" ]; then
                return 0
        else
                exit $1
        fi
}

is a shell function which would handle the two return codes which would
be OK in the situation of the postinst script (6:program unconfigured,
5:program not installed). Well, the later one obviously shouldn't
occure, but who knows.

Regards,
Sven


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to