From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q5PoA-0005KI-Iu for garchives@archives.gentoo.org; Thu, 31 Mar 2011 21:53:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 402411C03C; Thu, 31 Mar 2011 21:53:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1151B1C03C for ; Thu, 31 Mar 2011 21:53:29 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F2D41B4120 for ; Thu, 31 Mar 2011 21:53:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E7E9780065 for ; Thu, 31 Mar 2011 21:53:28 +0000 (UTC) From: "Paul Varner" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paul Varner" Message-ID: Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/helpers.py X-VCS-Directories: pym/gentoolkit/ X-VCS-Committer: fuzzyray X-VCS-Committer-Name: Paul Varner X-VCS-Revision: eb134645c0bc8938a87a076c386c37571b61fc00 Date: Thu, 31 Mar 2011 21:53:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2e7d5fed52551a980f58afb4a0ee542c commit: eb134645c0bc8938a87a076c386c37571b61fc00 Author: Paul Varner gentoo org> AuthorDate: Thu Mar 31 21:48:31 2011 +0000 Commit: Paul Varner gentoo org> CommitDate: Thu Mar 31 21:48:31 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoolkit.gi= t;a=3Dcommit;h=3Deb134645 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 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): =20 osp =3D 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]) =20 return paths =20