Re: Debconf problem

2005-11-11 Thread Frank Küster
Joey Hess [EMAIL PROTECTED] wrote: Frank Küster wrote: Because it isn't true that the previous version didn't use debconf. It just asked the questions totally differently and took an approach that I now would call flawed. But still it gave the users the impression that their ls-R files'

Re: Debconf problem

2005-11-10 Thread Frank Küster
Hi Joey, thanks for being patient with me. I promise that I'll write this up (for debconf-devel(7) or the developer's reference or whatever you suggest) once we've sorted this out. Joey Hess [EMAIL PROTECTED] wrote: Does that mean I must use some hackish handmade flags that are reset only

Re: Debconf problem

2005-11-10 Thread Joey Hess
Frank Küster wrote: Because it isn't true that the previous version didn't use debconf. It just asked the questions totally differently and took an approach that I now would call flawed. But still it gave the users the impression that their ls-R files' permissions are managed by debconf, and

Re: Debconf problem

2005-11-09 Thread Frank Küster
Joey Hess [EMAIL PROTECTED] wrote: Frank Küster wrote: I found no way to cleanly solve the problem of - writing the current state into the debconf database, so that noninteractive installs don't change anything - actually reflect changed answers in the system. The config script is

Re: Debconf problem

2005-11-09 Thread Joey Hess
Frank Küster wrote: Sorry for still being dumb. When it's reconfigure, I have just learned that the config script is run only once, so I need not handle this case specially. But when its an upgrade, it is run twice, and I need to discriminate between the first pass (check existing

Debconf problem

2005-11-08 Thread Frank Küster
Hi, I posted this question yesterday on -mentors, but since nobody answered, it seems it isn't as trivial as I had hoped. I have either some fundamental misunderstanding of how debconf or maintainer scripts work, or there is an error in the descriptioin of how debconf-using scripts should handle

Re: Debconf problem

2005-11-08 Thread Joey Hess
Frank Küster wrote: However, in case apt-utils is installed, this script will be run twice: Once by dpkg-preconfigure, i.e. in the preinst stage, and once by confmodule when the postinst script sources confmodule. As far as I can see, this will have a confusing effect. Assume the configfile

Re: Debconf problem

2005-11-08 Thread Frank Küster
Joey Hess [EMAIL PROTECTED] wrote: dpkg-reconfigure runs the config script exactly once, so the config file is read once, its values are used for defaults to the questions to allow reconfiguration, and are saved to the config file by the postinst. Yes, I was wrong about this - it's only run

Re: Debconf problem

2005-11-08 Thread Joey Hess
Frank Küster wrote: I found no way to cleanly solve the problem of - writing the current state into the debconf database, so that noninteractive installs don't change anything - actually reflect changed answers in the system. The config script is passed parameters that you can use to

Re: Bug#276306: dpkg -P backuppc fails (debconf problem ?)

2004-10-21 Thread Frank Küster
Ludovic Drolez [EMAIL PROTECTED] wrote: Frank Küster wrote: Please try to debug by putting a set -x into /var/lib/dpkg/info/backuppc.postrm (or prerm, whatever it is). If it really hangs at db_purge, it may be a bug in debconf. You should know that. Yes, I've alread tried the 'set -x'.

Re: Bug#276306: dpkg -P backuppc fails (debconf problem ?)

2004-10-20 Thread Ludovic Drolez
Frank Küster wrote: Ludovic Drolez [EMAIL PROTECTED] schrieb: The postinst script seems to be stuck in db_purge, a line which was added automatically: The postinst script is not executed upon purging a package. Probably you mean the postrm script? Yes. ... # Automatically added by