Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26620 - etc-update needs a way to check if a file has been modified since install
Summary: etc-update needs a way to check if a file has been modified since install
Status: RESOLVED DUPLICATE of bug 11763
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-14 07:09 UTC by Justin Guenther
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Guenther 2003-08-14 07:09:17 UTC
etc-update currently has no way to check whether a particular configuration file 
has actually changed since it was installed.

one way to fix this would be to have etc-update check to see if a checksum of 
the old file and a checksum of the new file match.

if the md5 sums match, etc-update could automatically safely replace the old 
with the new, even if the new file contains changes.

allowances would have to be made for the RCS header information at the beginning 
of the file, et cetera, but i think that this would be an excellent feature to 
have.

Reproducible: Always
Steps to Reproduce:
1. install an application (e.g. foo-0.1) => /etc/foo.conf
2. do not modify the file
3. upgrade the application, which changes the config file (e.g. foo-0.2) => 
/etc/foo.conf.net
Actual Results:  
running etc-update will still ask to merge/replace/discard the new config file 
with the old

Expected Results:  
etc-update should recognize that the old config file was unchanged since 
installation, and therefore can safely be replaced with the new config file.
Comment 1 SpanKY gentoo-dev 2003-08-14 16:27:02 UTC

*** This bug has been marked as a duplicate of 11763 ***