diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-14 18:29:30 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-14 18:29:30 +0000 |
commit | d847b5a97929fb8226c47a76d2472e2415d85034 (patch) | |
tree | 4d5effa6e06e0b4ba88647a4969e5560e322c3df | |
parent | ae0ffa9e4cb6e2e2eb9a0c5699c85ea375d86a0b (diff) | |
download | portage-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
-rw-r--r-- | pym/portage/dbapi/vartree.py | 3 |
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 |