Re: Bug#560317: dpkg-trigger complains at dpkg-reconfigure time
On Mon, 13 Sep 2010, Ian Jackson wrote:
> Raphael Hertzog writes ("Re: Bug#560317: dpkg-trigger complains at dpkg-reconfigure time"):
> > On Thu, 10 Dec 2009, Joey Hess wrote:
> > > 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.
>
> I think Joey is right. In particular, dpkg-reconfigure should not set
> DPKG_RUNNING_VERSION, because that promises that the whole thing is
> running as a descendant a copy of dpkg; said copy of dpkg is
> responsible for processing triggers.
I agree with not setting DPKG_RUNNING_VERSION, but the others should be
set. Otherwise you can't reliably use the variables in a postint. And they
are used in several situations when dpkg-maintscript-helper is invoked.
> > Given that dpkg-maintscript-helper is also impacted and not only
> > dpkg-trigger, I think that ? yes ? it really make sense to set them.
>
> Can you explain why the analysis above is wrong ?
Did I say it's wrong?
Cheers,
--
Raphaël Hertzog ◈ Debian Developer ◈ [Flattr=20693]
Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
Reply to: