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

Re: dpkg enhancements for better debconf support



Adam Heath wrote:
> On Mon, 9 Sep 2002, Joey Hess wrote:
> 
> > Doogie asked me to send in a list of ways dpkg could better support
> > debconf. In rough order of usefulness:
> >
> > 1. Run config script under debconf before running postinst script of
> >    package, passing in appropriate arguments. /usr/bin/debconf takes a
> >    script to run under debconf and arguments to pass to the script as
> >    parameters, and this is what it was designed for.
> 
> Don't you mean running the config script before preinst?

That would be nice, and indeed ideal, but doing that right would
probably mean adding an additional package state to dpkg. As I discuss
here:

> >    An old patch to do this is
> >    http://lists.debian.org/debian-dpkg/2001/debian-dpkg-200102/msg00003.html
> >    Also has useful discussion of why it may be better to run the
> >    config script after the preinst, not before it.

Running the config script after the preinst makes some intuitive things
like dpkg --configure on a half-configured or broken package work more as
expected.

-- 
see shy jo

Attachment: pgp4Hupnyuoan.pgp
Description: PGP signature


Reply to: