Re: Debconf in non-interactive mode

2010-11-22 Thread Niko Tyni
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

Re: Debconf in non-interactive mode

2010-11-22 Thread Mats Erik Andersson
Dear Niko, måndag den 22 november 2010 klockan 12:47 skrev Niko Tyni detta: 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

Re: Debconf in non-interactive mode

2010-11-21 Thread Raphael Hertzog
On Sat, 20 Nov 2010, Boyd Stephen Smith Jr. wrote: In 20101120223808.ga15...@mea.homelinux.org, Mats Erik Andersson wrote: Question: Is there some mechanism I can use in the postinst script that lets me determine whether the upgrade is being conducted in non-interactive

Re: Debconf in non-interactive mode

2010-11-21 Thread Holger Levsen
Hi, On Sonntag, 21. November 2010, Boyd Stephen Smith Jr. wrote: If both those tests are true, you can be pretty sure that a user can be prompted (on stderr, blah) and you can get a response on stdin. Don't do this, or rather: do it right: Prompting must be done by communicating through a

Debconf in non-interactive mode

2010-11-20 Thread Mats Erik Andersson
Dear all, 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

Re: Debconf in non-interactive mode

2010-11-20 Thread Boyd Stephen Smith Jr.
In 20101120223808.ga15...@mea.homelinux.org, Mats Erik Andersson wrote: Question: Is there some mechanism I can use in the postinst script that lets me determine whether the upgrade is being conducted in non-interactive mode? First, you should *assume* non-interactive mode.