[Pkg-openldap-devel] r1107 - openldap/trunk/debian

Steve Langasek vorlon at debian.org
Mon Feb 18 21:58:06 UTC 2008


On Mon, Feb 18, 2008 at 01:32:42PM -0800, Russ Allbery wrote:
> Steve Langasek <vorlon at debian.org> writes:

> > Well, it's not documented in policy as one of the supported arguments...
> > I know that dpkg-reconfigure will call the *config* script with a
> > 'reconfigure' option, but according to the source it only calls the
> > postinst with 'configure'.

> Found it.  It's at the end of debconf-devel(7):

>     Debconf sets DEBCONF_RECONFIGURE=1 before running postinst scripts, so
>     a postinst script that needs to avoid some expensive operation when
>     reconfigured can look at that variable. This is a hack because the
>     right thing would be to pass $1 = "reconfigure", but doing so without
>     breaking all the postinsts that use debconf is difficult. The
>     migration plan away from this hack is to encourage people to write
>     postinsts that accept "reconfigure", and once they all do, begin
>     passing that variable.

Ah, hmm.  I guess that's been in the manpage for quite some time, but I was
totally unaware that there were any plans for such a change; never seen any
discussion of it on debian-devel or debian-policy.  Are there really plans
to push for this, or is this an all-but-abandoned historical footnote on how
debconf /should/ have been done?

Anyway, change reverted.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org



More information about the Pkg-openldap-devel mailing list