diff options
author | Mike Gilbert <floppym@gentoo.org> | 2017-05-23 18:46:32 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-05-23 18:49:07 -0400 |
commit | 83b757c0b7bcf1912eb1acabdfbb3f5a5f46cd17 (patch) | |
tree | 23ed46e5b487a584f08f0e36c0f622e242ec05ff /pym | |
parent | revdep_rebuild/settings.py: Fix traceback error with Python3.6 (bug 617498) (diff) | |
download | gentoolkit-83b757c0b7bcf1912eb1acabdfbb3f5a5f46cd17.tar.gz gentoolkit-83b757c0b7bcf1912eb1acabdfbb3f5a5f46cd17.tar.bz2 gentoolkit-83b757c0b7bcf1912eb1acabdfbb3f5a5f46cd17.zip |
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
Diffstat (limited to 'pym')
-rw-r--r-- | pym/gentoolkit/equery/check.py | 2 |
1 files changed, 1 insertions, 1 deletions
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": |