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

Bug#2831: timezone conffiles vs. postinst

On Wed, 1 May 1996, Fernando wrote:

> On Tue, 30 Apr 1996, Bruce Perens wrote:
> > The problem happens when you go to upgrade the timezone package. If I
> > say "Y" to the control file prompt, the package will replace my
> > _configured_ /etc/timezone with the one for Factory. Since you create
> 1) If I am not wrong, the prompt will appear only if the configuration
> file that _I_ provide changes, but I don't think I will ever have to
> change it. So you should never see that prompt.

Actually you are wrong.  Simply, there are 3 versions of any config
file when its containing package is being upgraded:

	1) the original one in the previous package
	2) the one installed right now
	3) the original one in the new package.

You'll get the prompt if 1 and 2 are different, *not* if 1 and 3 are
different.  So the user will get the prompt every time he updates your
timezone library.  Actually she should never get the prompt.  The way
to do this is, as Bruce suggested, is to manage the file solely from the
postinst, and never put it in the .deb file.

Most of your other criticisms are moot in light of the above.

> I am afraid I don't agree with you. I want it to be a conffile. That way,
> you can remove the timezone package (not purge!) and the time zone will
> still be correct.

Actually that's not true either.  Read tzset(3) and you'll see that the
contents of /usr/lib/zoneinfo/localtime are what's important.


Reply to: