Post by Ralph Spitzner
(maybe the installer shoud just append a .new, so the one with the
most .new's to it is the new one :-) )
The .new file should always be overwritten by the latest installed
package containing that file, as its a hard filename IN the package.
The doinst.sh script, post-install, will then do one of three things:
- mv it to the filename without .new, if that's not there yet
- rm it, when it's identical to the file already there, or
- leave the .new copy for the admin to consider...
So there never will be more than two, the "real" filename and optional
the one with .new appended (which 2 then are not identical).
After every install/update I go and look for .new files to see "what's
changed" and do I want that? If not I remove the .new file (mostly
because my own version is too much customized to move the .new one
over). Sometimes I do change my own version with new code from the
.new one (and THEN remove the latter).