From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 168411396D0 for ; Tue, 5 Sep 2017 15:32:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F7731FC002; Tue, 5 Sep 2017 15:32:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 406E91FC002 for ; Tue, 5 Sep 2017 15:32:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1D53F340988 for ; Tue, 5 Sep 2017 15:32:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91BBE8E26 for ; Tue, 5 Sep 2017 15:32:12 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1495579747.83b757c0b7bcf1912eb1acabdfbb3f5a5f46cd17.floppym@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/equery/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/equery/check.py X-VCS-Directories: pym/gentoolkit/equery/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 83b757c0b7bcf1912eb1acabdfbb3f5a5f46cd17 X-VCS-Branch: master Date: Tue, 5 Sep 2017 15:32:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7b003ff6-0761-499b-9934-2094e12a5e76 X-Archives-Hash: cd356694106c0a64cf880fe22aeaf037 commit: 83b757c0b7bcf1912eb1acabdfbb3f5a5f46cd17 Author: Mike Gilbert gentoo org> AuthorDate: Tue May 23 22:46:32 2017 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Tue May 23 22:49:07 2017 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=83b757c0 equery: check: use os.path.lexists() os.path.exists() returns false on broken symlinks. We don't actually care if the symlink target exists. X-Gentoo-Bug: 619472 X-Gentoo-Bug-URL: https://bugs.gentoo.org/619472 pym/gentoolkit/equery/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/gentoolkit/equery/check.py b/pym/gentoolkit/equery/check.py index 77042f8..d5a22a3 100644 --- a/pym/gentoolkit/equery/check.py +++ b/pym/gentoolkit/equery/check.py @@ -106,7 +106,7 @@ class VerifyContents(object): n_checked += 1 ftype = files[cfile][0] real_cfile = os.environ.get('ROOT', '') + cfile - if not os.path.exists(real_cfile): + if not os.path.lexists(real_cfile): errs.append("%s does not exist" % cfile) continue elif ftype == "dir":