Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4877 - RFE: CONFIG_PROTECT - protect only if file has been modified
Summary: RFE: CONFIG_PROTECT - protect only if file has been modified
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-11 14:06 UTC by J Robert Ray
Modified: 2011-10-30 22:37 UTC (History)
1 user (show)

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 J Robert Ray 2002-07-11 14:06:31 UTC
As I understand it, portage keeps a database of files it installs and is already
able to determine if a file has been modified since.

I would prefer that when files are being copied into the directories listed in
CONFIG_PROTECT, if I haven't changed the original file in any way, that
particular file is overwritten automatically.

In most cases where a config file hasn't been updated, it is either an example
file or the defaults are fine.  If I haven't changed these files I am likely to
not care if they are overwritten.

Of course thera are problem some situations where this wouldn't be advantageous,
but I would like to see it added as a configuration option to portage.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-07-26 14:44:28 UTC
We can't do this because it isn't 100% safe, but you can set a
CONFIG_PROTECT_MASK="/etc/foo" variable to tell Portage to simply overwrite
files in the /etc/foo directory.