summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-14 18:29:30 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-14 18:29:30 +0000
commitd847b5a97929fb8226c47a76d2472e2415d85034 (patch)
tree4d5effa6e06e0b4ba88647a4969e5560e322c3df /pym
parentae0ffa9e4cb6e2e2eb9a0c5699c85ea375d86a0b (diff)
downloadportage-d847b5a97929fb8226c47a76d2472e2415d85034.tar.gz
portage-d847b5a97929fb8226c47a76d2472e2415d85034.tar.bz2
portage-d847b5a97929fb8226c47a76d2472e2415d85034.zip
Add a note to clarify os.walk() behavior with respect
to symlinks to directories. svn path=/main/trunk/; revision=8124
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/vartree.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index e2797b2fa..67e10b4e3 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -1731,6 +1731,9 @@ class dblink(object):
if stat.S_ISREG(file_mode):
myfilelist.append(file_path[len(srcroot):])
elif stat.S_ISLNK(file_mode):
+ # Note: os.walk puts symlinks to directories in the "dirs"
+ # list and it does not traverse them since that could lead
+ # to an infinite recursion loop.
mylinklist.append(file_path[len(srcroot):])
# Preserve old libs if they are still in use