> To: Vidar Tyldum Hansen <[email protected]>

(You might want to correct that... Seems your mail app got a bit
confused about the reply-to header.)

Denis Solovyov wrote:
> VTH> SWUP is a dependency handler mostly. RPM is rather helpless without it
> VTH> as it will just spew out dependencies and not solve them.
> VTH> And if you lose config files during upgrades it's because of a faulty
> VTH> package which you should file a bug report on. So if you state your
> VTH> specific problem we might be able to help you better :)
> 
> Well,  at  the moment there was a single thing that maked me thinking of
> swup updating. :)
> I had /etc/ntp.conf unchanged but "touched" (mtime of file was changed).
> Let's  think that old default config was OK for me, for example I edited
> it  a  bit  and than came back to what I started from. Today's update to
> ntp-4.2.0-14tr  rewrote  /etc/ntp.conf  from old default to new default.
> Why? I want old default config with a new executables!

This is what we are trying to tell you :)
It works as I described. When creating the RPM the creator defines which
files should be considered config files and then leaves those files
alone. If the RPM contains a new config file that file is created with a
'.rpmnew' extension.

If we use NTP as an example (from my system):
--($:/etc/httpd)-- ls -l /etc/ntp.conf*
-rwxr-xr-x  1 root root 2091 2004-08-25 14:34 /etc/ntp.conf*
-rwxr-xr-x  1 root root 1832 2004-12-11 22:59 /etc/ntp.conf.rpmnew*

We can see that I edited the config file 25th of August. An upgrade to
NTP was installed on the 11th of December, but since I already had a
config file, the config file from the rpm got '.rpmnew' appended to it's
name.

I should then check the new config to see if there are any major changes
 and then merge the files. Some upgrades requires new config files (but
that rarely happens on a stable branch, more likely to occur when
SWUP-ing from TSL2.1 to TSL2.2).

So if your config files are getting overwritten it's a bug in the
package and should be reported to the maintainer ASAP.

To summarize: config files are never overwritten, but everything else
is. Anything else is a bug.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to