Re: Debconf is not executed during installation, but with dpkg-reconfigure
On Sat, Mar 09, 2002 at 12:27:31PM -0500, Ben Collins wrote:
> On Sat, Mar 09, 2002 at 06:39:45PM +0100, Stefan Hornburg (Racke) wrote:
> >
> > Hello,
> >
> > I need some help with debconf. I tried to write debconf stuff in Perl
> > for the dhelp package. The Perl stuff works with a private package,
> > so I doubt the problem is with the Perl stuff.
> >
> > I set DEBCONF_DEBUG to developer and there is no hint that debconf
> > is triggered during dpkg -i dhelp.deb, but debconf is triggered
> > when I ran dpkg-reconfigure afterwards.
> >
> > Has anyone a hint for me what can be wrong ?
>
> Does your postinst call any debhelper functions? The only way it gets
> run during dpkg -i is by postinst loading the Debconf module, and then
> Debconf triggering the .config.
More particularly, add this to your postinst:
. /usr/share/debconf/confmodule
Extra brownie points for making lintian notice this. It bit me twice
already.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
Reply to: