On Thu, 2009-01-01 at 09:29 -0800, Russ Allbery wrote:
> Bastian Blank <wa...@debian.org> writes:
> 
> > krb5-config uses debconf as a registry. It uses informations from
> > debconf as authoritative over the real krb5.conf and even asks
> > informations again on upgrade, like the kdc for the own realm.
[...]
> However, I don't
> know how to distinguish between the dpkg-reconfigure case and the
> reinstall case, where I presume the user's local changes should always be
> maintained.

The config script will be called with the argument "reconfigure"; the
prerm and postinst are called with "upgrade" and "configure" as usual,
but with $DPKG_RECONFIGURE set to 1.

This doesn't appear to be documented anywhere that I can find at the
moment, so the above is based on my reading of dpkg-reconfigure itself
(thankfully it's quite small and easy to follow). A quick look
through /var/lib/dpkg/info/ on this system suggests that a number of
other packages have other expectations.

Adam



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to