Re: Packages still using old-style debconf
On Thu, Feb 12, 2004 at 08:56:17PM +0100, Andreas Metzler wrote:
> As noted before (perl -pi -e 's/^_+//' templates) po-debconf does not
> make backporting difficult,
This indeed works for most packages, but a more complete script to take
po-debconf fancy features into account is:
perl -i -e 'local $/ = undef; $_ = <>;
s/^#.*\n?//mg; s/^_DefaultChoice/Default/mg; s/^_+//mg;
s/\[[ \t][^\[\]]*\](\n|$)/$1/g; print'
It might remove some bracketed text, but it is very unlikely, and last
time I checked no packages were affected. If I had to backport many
packages, I would certainly hack dh_installdebconf to modify templates
files as written above.