Re: Bug#560317: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

2012-03-12 Thread Colin Watson
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

Re: Bug#560317: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

2012-03-09 Thread Joey Hess
Colin Watson wrote: > + my $templates=`dpkg-query --control-path $pkg templates`; > + my $path_script=`dpkg-query --control-path $pkg $script`; > + open (QUERY, '-|', 'dpkg-query', '-W', > + '-f', '${Package} ${Triggers-Pending}\n'); It's a shame that dpkg

Re: Bug#560317: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

2012-03-09 Thread Colin Watson
On Fri, Mar 09, 2012 at 04:15:22PM +0100, Raphael Hertzog wrote: > To be fully multi-arch compliant, you should in theory use > "${binary:Package}" instead of ${Package}. That way multi-arch: same > package will be arch-qualified. Fair enough. Amended patch attached. Thanks, -- Colin Watson

Re: Bug#560317: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

2012-03-09 Thread Raphael Hertzog
On Fri, 09 Mar 2012, Colin Watson wrote: > happening. The result of this work is attached, minus changelog which I > can write up if this is acceptable. Thank you for this! A quick comment though: > +# Returns a list of all packages with pending triggers. > +sub triggers_pending { > + my @re

Re: Bug#560317: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

2012-03-09 Thread Colin Watson
On Fri, Aug 05, 2011 at 09:57:33PM +0200, Raphael Hertzog wrote: > On Fri, 05 Aug 2011, Joey Hess wrote: > > * Nobody has ever addressed my concern that, if dpkg-reconfigure runs > > dpkg --configure --pending, this will result in it confusingly doing > > other things than configuring the speci

Re: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

2011-08-05 Thread Raphael Hertzog
Hi Joey, On Fri, 05 Aug 2011, Joey Hess wrote: > I keep seeing people complain that this bug is not fixed, but every > time I look at it, I find myself unable to fix it, and with issues like > these: Thanks for looking into it! > * Where are these variables documented? > (Appears that they're

Re: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

2011-08-05 Thread Guillem Jover
Hi! On Fri, 2011-08-05 at 12:50:22 -0400, Joey Hess wrote: > I keep seeing people complain that this bug is not fixed, but every > time I look at it, I find myself unable to fix it, and with issues like > these: > > * Where are these variables documented? > (Appears that they're basically not,

Re: dpkg-reconfigure does not set DPKG_MAINTSCRIPT_PACKAGE (et al)

2011-08-05 Thread Joey Hess
I keep seeing people complain that this bug is not fixed, but every time I look at it, I find myself unable to fix it, and with issues like these: * Where are these variables documented? (Appears that they're basically not, which makes it sorta hard to know that they are being set, or used, as