diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2016-10-08 16:34:54 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-10-08 16:34:54 +0200 |
commit | 31f6334aa8f8093ddfd2fd3ecf9fc438ad62a792 (patch) | |
tree | c6b0adcccd676270745f1327af346c57c17aa126 /test/functional/eval/system_spec.lua | |
parent | 91d13bd86198c878b0b89d0ae31a8b8b0c8dd327 (diff) | |
download | rneovim-31f6334aa8f8093ddfd2fd3ecf9fc438ad62a792.tar.gz rneovim-31f6334aa8f8093ddfd2fd3ecf9fc438ad62a792.tar.bz2 rneovim-31f6334aa8f8093ddfd2fd3ecf9fc438ad62a792.zip |
CheckHealth: choose correct path for the latest version (#5446)
If multiple versions of a package are installed, the provider health check could
choose a wrong path:
/usr/local/lib/python3.5/site-packages/neovim-0.1.10-py3.5.egg-info/PKG-INFO
/usr/local/lib/python3.5/site-packages/neovim-0.1.9-py3.5.egg-info/PKG-INFO
Prior to this change :CheckHealth could falsely show 0.1.9 as the installed
version, since glob() doesn't enforce any predictable order.
Now we sort all potential paths numerically in descending order and just look at
the first path instead.
Diffstat (limited to 'test/functional/eval/system_spec.lua')
0 files changed, 0 insertions, 0 deletions