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

Re: dpkg-trigger complains at dpkg-reconfigure time

On Thu, Dec 10, 2009 at 04:05:25PM +0100, Norbert Preining wrote:

> I have a question for sure stemming from my misunderstanding of triggers.
> tex-common ships dh_installtex which makes installation of fonts etc
> for TeX system easy, and it is used in quite some packages. We use
> triggers (on popolar demand) since the most expensive operation is
> the update of the font maps (calling updmap-sys), which is handled
> by triggers.

> Now in the generated postinst snippets we have some down there
> 	update-texmf-config updmap
> which in turn calls 
> 	dpkg-trigger texmf-updmap

> Now when doing 
> 	dpkg-reconfigure one-of-the-font-packages
> I get
> 	dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)

> I though well, yes, it is called from a maintainer script (postinst configure)
> and the package should be clear. But why does dpkg-trigger complain?

> Thanks for any explanation

Because dpkg-reconfigure calls the maintainer scripts directly, not by way
of dpkg, and as a result the DPKG_MAINTSCRIPT_PACKAGE variable is not set.

I think this should be regarded as a bug in dpkg-reconfigure.

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@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature

Reply to: