Sven Mueller wrote on 08/05/2006 02:20:
> 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
> }

/me overread the --error-handler option to dh_installinit at first.
However, when trying it out, I found that the error handler gets called
with no information about the error it should handle. This is
unfortunate IMHO. I fixed it for my package by using dh_installinit's
--no-start option and manually adding what dh_installinit would normally
add, when given the --error-handler option. With one slight difference:
I pass $? to the error handler. IMHO, this is also how dh_installinit
should do it. Just MHO though, and not really worth a wishlist bug. If
Joey likes to add that (add $? after the name of the error handler in
the generated script sniplet), fine. If not, also fine.

Regards,
Sven


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

Reply via email to