Re: Debconf in non-interactive mode
On Sat, Nov 20, 2010 at 11:38:08PM +0100, Mats Erik Andersson wrote:
> I could find good use of some advice on Debconf usage.
> The recent automated package upgrade tests, conducted
> by Lucas Nussbaum, hava revealed that my package Webfs
> fails to upgrade properly from stable (1.21-5.1) to
> testing (1.21+ds1-6). I have filed an RC bug against
> myself on this matter, so I will have to solve it.
> My present analysis indicates that after my adoption
> of the package, starting at 1.21+ds1-1, I was too keen
> in letting the postinst script insert some new settings
> in the configuration file. Thus the script awaits feedback
> even in non-interactive mode.
It's not really about non-interactive mode, that just happened
to pinpoint the problem.
The issue is that you're modifying a dpkg conffile (/etc/webfsd.conf) in
your maintainer scripts. This is a violation of Debian policy 10.7.3 and
explicitly listed in the 'Release Critical Issues for Squeeze' document at
so #603926 (cc'd) is definitely RC.
You might want to look at using ucf(1) to install the file instead of
shipping it as a conffile.
Niko Tyni email@example.com