aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-11-26 12:50:52 +0000
committerZac Medico <zmedico@gentoo.org>2006-11-26 12:50:52 +0000
commit7c31e808f7fee68104f32ec590029459521c4e8e (patch)
tree3b1a386a2fd82c9f79abd73ea255fe2d09220506
parentNever overwrite an untouched config file and trigger config protection instea... (diff)
downloadportage-7c31e808f7fee68104f32ec590029459521c4e8e.tar.gz
portage-7c31e808f7fee68104f32ec590029459521c4e8e.tar.bz2
portage-7c31e808f7fee68104f32ec590029459521c4e8e.zip
Update the dblink.isprotected() docstring.
svn path=/main/trunk/; revision=5134
-rw-r--r--pym/portage.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 5d6970122..7513beb2b 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6427,10 +6427,9 @@ class dblink:
return False
def isprotected(self, filename):
- """Files are protected by CONFIG_PROTECT only if they are not identical
- to the file that was originally installed (otherwise, the unmerge phase
- can remove them). This allows the merge phase to replace files that
- will eventually be unmerged anyway."""
+ """In cases where an installed package in the same slot owns a
+ protected file that will be merged, bump the mtime on the installed
+ file in order to ensure that it isn't unmerged."""
if not self._config_protect.isprotected(filename):
return False
if self._installed_instance is None: