[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: new preliminary packages for mol in incoming (0.9.58-1)



On 4 May 2001, Jens Schmalzing wrote:

> The config script informs the user that a number of configuration
> files need to be present, that they won't be touched by Debian if they
> have been edited by the user, and that to make sure they will be
> created by Debian they should be deleted now.

What I do for uptimed currently is the following:

In the config script, I read in the current config file, if it exists
(i.e. the package is not installed for the first time) and store the
values into the debconf database. Then, I ask the questions. In the
postinst script, I read the config file again, see whether anything needs
to be changed and substitute the new values (using sed).

In case the config format changed (not likely to happen, but if it does),
I can take over the settings from the old config file into the new file
this way.

Of course, if I change anything, the old file gets backed up as
*.dpkg-old.

> I would appreciate if people could point out any flaws in this scheme.
> Better yet, I would appreciate a pointer to a package that has already
> solved this problem successfully.

Since I also take this as an opportunity to learn perl, the new package
has not yet been uploaded, and it might also take a few days still (since
it's weekend and thus partytime).

   Simon

-- 
GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc
 Fingerprint: DC26 EB8D 1F35 4F44 2934  7583 DBB6 F98D 9198 3292
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!



Reply to: