summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-16 00:38:46 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-16 00:38:46 +0000
commit67ba1db18b8ca37d678963b698432ddcbcbbd2a1 (patch)
treea12250c90d2406cbf860b5841c56666077fbcef6 /pym/portage.py
parent9e16ff3f854356fd87718bdced19d2e4dbb19747 (diff)
downloadportage-67ba1db18b8ca37d678963b698432ddcbcbbd2a1.tar.gz
portage-67ba1db18b8ca37d678963b698432ddcbcbbd2a1.tar.bz2
portage-67ba1db18b8ca37d678963b698432ddcbcbbd2a1.zip
For bug #14321, add support for individual files in CONFIG_PROTECT and CONFIG_PROTECT_MASK.
svn path=/main/trunk/; revision=4458
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/pym/portage.py b/pym/portage.py
index cab4fdcae..d07363371 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6112,11 +6112,6 @@ class dblink:
#A directory is specified. Figure out protection paths, listdir() it and process it.
mergelist = listdir(join(srcroot, stufftomerge))
offset=stufftomerge
- # We need mydest defined up here to calc. protection paths. This is now done once per
- # directory rather than once per file merge. This should really help merge performance.
- # Trailing / ensures that protects/masks with trailing /'s match.
- mytruncpath = join(destroot, offset).rstrip(sep) + sep
- myppath=self.isprotected(mytruncpath)
else:
mergelist=stufftomerge
offset=""
@@ -6294,7 +6289,7 @@ class dblink:
# or by a symlink to an existing regular file;
# now, config file management may come into play.
# we only need to tweak mydest if cfg file management is in play.
- if myppath:
+ if self.isprotected(mydest):
# we have a protection path; enable config file management.
destmd5=portage_checksum.perform_md5(mydest,calc_prelink=1)
if mymd5==destmd5: