From eb134645c0bc8938a87a076c386c37571b61fc00 Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Thu, 31 Mar 2011 16:48:31 -0500 Subject: [PATCH] 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. --- pym/gentoolkit/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2