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

Russ Allbery rra at debian.org
Mon Feb 18 21:32:42 UTC 2008


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.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>



More information about the Pkg-openldap-devel mailing list