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

2012-03-14 Thread Colin Watson
On Mon, Mar 12, 2012 at 10:15:29AM -0400, Joey Hess wrote: Colin Watson wrote: How about this, then? Works for me.. OK, great. I've pushed that to master and will look at putting together an upload shortly ... Thanks, -- Colin Watson

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

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

2012-03-12 Thread Joey Hess
Colin Watson wrote: How about this, then? Works for me.. -- see shy jo signature.asc Description: Digital signature

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

2012-03-12 Thread Regis Boudin
Hi all, On Mon, 2012-03-12 at 10:44 +, 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

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 specified

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 @ret;

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

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

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

2011-11-15 Thread Ivan Baldo
Hello. I have found this problem too. Is there some workaround that I can use so I can reconfigure a whole system I have? I want to review all the configuration and make changes where necessary. Has anyone with the required knowledge reviewed the patches made by Raphael Hertzog?

Bug#560317: 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,

Bug#560317: 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, which

Bug#560317: 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