[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFC: allow output from maintainer scripts



On Fri, 27 Oct 2000, Anthony Towns wrote:

> I don't really see what's so "middle ground" about it; it needs much more
> significant changes to maintainer scripts [0], creates a compatability
> problem, and doesn't really seem to buy anyone anything over the simpler
> solution.

Nonsense.

> 	echo "Setting up emacsen-common to cope with emacs20." >&2
> 	/usr/lib/emacsen-common/emacs-install emacs20 >/dev/null 2>&1

vs:

if [ x`which dpkg-log` != x ]; then
DL_PIPE=dpkg-log --priority=low --pipe
DL_LOW=dpkg-log --priority=low
DL_HIGH=dpkg-log --priority=high
[..]
else
DL_PIPE=cat
DL_LOW=echo
[..]
fi

[..]

$DL_LOW "Setting up emacsen-common to cope with emacs20."
/usr/lib/emacsen-common/emacs-install emacs20 2>&1 | $DL_PIPE
$DL_HIGH "The world is going to end!"

The top is totally boiler plate and can be written once and just included
by the people who use it.

Other than the stuff at the top the changes are equal to the vicious hack
of using FD 2 and supressing any the messages.

Jason



Reply to: