From: Paul Varner Date: Thu, 31 Mar 2011 21:48:31 +0000 (-0500) Subject: Fix extend_realpaths in FileOwner class. (Bug 96515) X-Git-Tag: gentoolkit-0.3.0~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb134645c0bc8938a87a076c386c37571b61fc00;p=gentoolkit.git 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. --- 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