commit:     83b757c0b7bcf1912eb1acabdfbb3f5a5f46cd17
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Tue May 23 22:46:32 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> 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":

Reply via email to