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

Re: Bug#560317: dpkg-trigger complains at dpkg-reconfigure time



Raphael Hertzog 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.
> 
> Right.
> 
> > Perhaps dpkg-reconfigure needs to call dpkg --configure --pending ?
> 
> Indeed, it's probably a good idea. Or maybe: "dpkg --triggers-only
> --pending" (but reading the doc I'm not sure if --configure is not
> better).

Of course this will lead to the problem that dpkg-reconfigure could
start doing all sorts of things unrelated to what it was asked to do,
including configuring many unrelated packages if used after a failed apt
run, for example.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: