[Debconf-devel] Bug#560317: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

Regis Boudin regis at boudin.name
Mon Mar 12 19:00:55 UTC 2012


Hi all,

On Mon, 2012-03-12 at 10:44 +0000, Colin Watson wrote:
> On Fri, Mar 09, 2012 at 12:36:06PM -0400, Joey Hess wrote:
> > It's a shame that dpkg-query is so slow. Cold cache (which will be
> > typical), it takes something like a second to run; warm cache around .3
> > seconds. Overhead includes reading the entire status file. The above
> > code runs it 5 times in all.
> > 
> > So, it would be worth only running it once and picking out the
> > appropriate filenames from its output.

> > PS, cdebconf includes a dpkg-reconfigure now and will need the same
> > changes. Probably we need to make sure to communicate substantial
> > changes like this with Regis at least until cdebconf takes over from
> > debconf.
> 
> cdebconf is actually ahead of debconf on this right now: it already has
> the 'dpkg-query --control-path' thing (and just runs it once per
> script), and it also already sets the DPKG_MAINTSCRIPT_* variables.  It
> does need the triggers work, though.  CCing Regis here.

Thanks for the heads up. I was planning to do an upload of cdebconf
tonight, so I think I'll be looking at the triggers stuff for
dpkg-reconfigure after that.

Regis






More information about the Debconf-devel mailing list