Gentoo Archives: gentoo-commits

From: Paul Varner <fuzzyray@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/
Date: Thu, 31 Mar 2011 21:53:38
Message-Id: eb134645c0bc8938a87a076c386c37571b61fc00.fuzzyray@gentoo
1 commit: eb134645c0bc8938a87a076c386c37571b61fc00
2 Author: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 31 21:48:31 2011 +0000
4 Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 31 21:48:31 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=eb134645
7
8 Fix extend_realpaths in FileOwner class. (Bug 96515)
9
10 Removed the os.path.islink check since it oly returns true if the last
11 part of the path is a symbolic link. We want to add the realpath to the
12 list if it already doesn't exist in the list, since that indicates that
13 something in the path is a symbolic link.
14
15 ---
16 pym/gentoolkit/helpers.py | 2 +-
17 1 files changed, 1 insertions(+), 1 deletions(-)
18
19 diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py
20 index cd8b763..225a198 100644
21 --- a/pym/gentoolkit/helpers.py
22 +++ b/pym/gentoolkit/helpers.py
23 @@ -333,7 +333,7 @@ class FileOwner(object):
24
25 osp = os.path
26 paths.extend([osp.realpath(x) for x in paths
27 - if osp.islink(x) and osp.realpath(x) not in paths])
28 + if osp.realpath(x) not in paths])
29
30 return paths