[Debconf-devel] Bug#560317: dpkg-trigger complains at dpkg-reconfigure time
joeyh at debian.org
Thu Dec 10 20:44:43 UTC 2009
Raphael Hertzog wrote:
> Because the postinst is called by dpkg-reconfigure (of debconf) and it
> doesn't set the same environment variables that dpkg does set when
> it calls the postinst by itself. In particular DPKG_MAINTSCRIPT_PACKAGE
> is missing.
> (dpkg does also set DPKG_MAINTSCRIPT_ARCH and DPKG_RUNNING_VERSION)
> It's a bug in dpkg-reconfigure, please file it or reassign.
Does it actually make sense for dpkg-trigger to see those environment
variables when the postinst is not being run by dpkg? Seems possible that
any deferred trigger processing it then sets up will not take effect until
the next dpkg run, which could be well after dpkg-reconfigure finishes.
Perhaps dpkg-reconfigure needs to call dpkg --configure --pending ?
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 828 bytes
Desc: Digital signature
More information about the Debconf-devel