>>>>> "Henrique" == Henrique de Moraes Holschuh <[EMAIL PROTECTED]> writes:

    Henrique> This leaves our postinst will all stdout output
    Henrique> redirected into confmodule, which seems to cause the
    Henrique> mess.

I don't particularly like the debconf standard of using stdout for its
command stream. Too many programs use stdout to write anything they
desire. Not only that, but the error generated is very obscure (unless
you have debugging turned on and are competent enough to understand
it). I don't think it was even obvious that the error was being
generated from debconf. It would be better to redirect stdout -->
/dev/null IMHO, and use some other hard coded file handle for debconf.

In this case it would appear that the problem is caused by echo
statements in our script (do we really need them?). Like the
following:

    Henrique> + echo 'Removing amavis files and directories...'
    Henrique> Removing amavis files and directories...

However all you need is for one of the many utility programs we use,
eg:

    Henrique> + deluser amavis
    Henrique> Removing user `amavis'...
    Henrique> done.

to output the status information to stdout instead of stderr (I assume
it is currently using stderr as this line didn't seem to upset
debconf) for some obscure/untested condition, and our scripts starts
outputting to stdout again. In fact, I would argue that deluser should
be outputting this to stdout, the status information shown above is
hardly an error condition.
-- 
Brian May <[EMAIL PROTECTED]>


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

Reply via email to