Re: Preseeding and debconf

2007-01-07 Thread Vincent Bernat
OoO  En cette  soirée bien  amorcée du  samedi 06  janvier  2007, vers
22:40, Petter Reinholdtsen [EMAIL PROTECTED] disait:

 Should I fill bug against ssmtp as well or is this behaviour
 considered correct ?

 This behaviour is correct.  The configuration in files on disk is
 authorative.  The debconf values are only used and should only be used
 if there are no config values in files on disk.  This is so to make
 sure it work to edit the files on disk and that upgrading the package
 does not change the configuration to use the debconf values.

 So preseeding only work if it is used pre-installation, and not to
 reconfigure after the installation.  You might work around this by
 modifying the debconf settings, but you need to be careful to get it
 right.

OK, I close the bug I opened about it then.

Thanks.
-- 
BOFH excuse #235:
The new frame relay network hasn't bedded down the software loop transmitter 
yet.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Preseeding and debconf

2007-01-06 Thread Vincent Bernat
Hi !

I am using preseeding to configure quickly a package :
 - debconf-get-selections | grep ^packagename
 - debconf-set-selections  file.seeds
 - dpkg-reconfigure -pcritical -fnoninteractive packagename

This works  with most packages. I  have recently filled  a bug against
ocfs2-tools  (#404877) because  this package  parses /etc/default/o2cb
instead  of using  debconf database.  This means  that my  changes are
erased when using dpkg-reconfigure.

I have found the same bug  in ssmtp. In those cases, debconf becomes
useless  because it  is used  only  for the  first configuration.  For
reconfiguration, the configuration file  superseeds what is in debconf
database.

Should  I  fill  bug  against  ssmtp  as well  or  is  this  behaviour
considered correct ?
-- 
Don't stop with your first draft.
- The Elements of Programming Style (Kernighan  Plauger)


pgpuNJZQAtxZO.pgp
Description: PGP signature


Preseeding and debconf

2007-01-06 Thread Vincent Bernat
Hi !

I am using preseeding to configure quickly a package :
 - debconf-get-selections | grep ^packagename
 - debconf-set-selections  file.seeds
 - dpkg-reconfigure -pcritical -fnoninteractive packagename

This works  with most packages. I  have recently filled  a bug against
ocfs2-tools  (#404877) because  this package  parses /etc/default/o2cb
instead  of using  debconf database.  This means  that my  changes are
erased when using dpkg-reconfigure.

I have found the same bug  in ssmtp. In those cases, debconf becomes
useless  because it  is used  only  for the  first configuration.  For
reconfiguration, the configuration file  superseeds what is in debconf
database.

Should  I  fill  bug  against  ssmtp  as well  or  is  this  behaviour
considered correct ?
-- 
Don't stop with your first draft.
- The Elements of Programming Style (Kernighan  Plauger)


pgpU9Q0fuV0QK.pgp
Description: PGP signature


Re: Preseeding and debconf

2007-01-06 Thread Petter Reinholdtsen
[Vincent Bernat]
 Should I fill bug against ssmtp as well or is this behaviour
 considered correct ?

This behaviour is correct.  The configuration in files on disk is
authorative.  The debconf values are only used and should only be used
if there are no config values in files on disk.  This is so to make
sure it work to edit the files on disk and that upgrading the package
does not change the configuration to use the debconf values.

So preseeding only work if it is used pre-installation, and not to
reconfigure after the installation.  You might work around this by
modifying the debconf settings, but you need to be careful to get it
right.

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]