diff options
author | Paul Varner <fuzzyray@gentoo.org> | 2011-03-31 16:48:31 -0500 |
---|---|---|
committer | Paul Varner <fuzzyray@gentoo.org> | 2011-03-31 16:48:31 -0500 |
commit | eb134645c0bc8938a87a076c386c37571b61fc00 (patch) | |
tree | 3e1d9a663da53c838c03d2ed2ca3427b350e9cd0 /pym/gentoolkit/helpers.py | |
parent | Latest euse changes from Jared Hancock (diff) | |
download | gentoolkit-eb134645c0bc8938a87a076c386c37571b61fc00.tar.gz gentoolkit-eb134645c0bc8938a87a076c386c37571b61fc00.tar.bz2 gentoolkit-eb134645c0bc8938a87a076c386c37571b61fc00.zip |
Fix extend_realpaths in FileOwner class. (Bug 96515)
Removed the os.path.islink check since it oly returns true if the last
part of the path is a symbolic link. We want to add the realpath to the
list if it already doesn't exist in the list, since that indicates that
something in the path is a symbolic link.
Diffstat (limited to 'pym/gentoolkit/helpers.py')
-rw-r--r-- | pym/gentoolkit/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py index cd8b763..225a198 100644 --- a/pym/gentoolkit/helpers.py +++ b/pym/gentoolkit/helpers.py @@ -333,7 +333,7 @@ class FileOwner(object): osp = os.path paths.extend([osp.realpath(x) for x in paths - if osp.islink(x) and osp.realpath(x) not in paths]) + if osp.realpath(x) not in paths]) return paths |