Re: Upstream's complete overhaul of the configuration file - And future handling
Josselin Mouette dijo [Wed, Mar 26, 2008 at 09:53:56AM +0100]:
> Why in preinst ? I think it can be done in config/postinst the usual
> way. And of course, this question should be skipped if the file has not
> been modified, and not have a too high priority.
Agree with you here, it makes more sense in preinst. That way it can
also chicken out more easily.
> If the user doesn???t want conversion, either you don???t upgrade at all (in
> which case you indeed need to do it in the preinst) or you simply don???t
> start the daemon, but this sounds suboptimal as well.
>
> > 2b- If the user does want automatic conversion, do it - and leave the
> > daemon running. Leave old configuration as reference, appending
> > .old to filename.
>
> In the end, this is the only sane thing to do, so you don???t even need to
> ask the question. Just upgrade, convert, and display a big fat warning
> that the configuration has been converted and where is the old file.
Sounds quite sensible, all in all. However, I am not too comfortable
with unilaterally modifying a conffile - Is that legal? Even if the
user has already modified it? No, there is no way I can present a
side-by-side diff... Unless I continue shipping my 0.5.x config file,
just for comparison sake...
--
Gunnar Wolf - gwolf@gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5 27AF
Reply to: