mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 18:37:02 +10:00
healthcheck: s:check_python: only report latest with good response
This commit is contained in:
@@ -393,14 +393,12 @@ function! s:check_python(version) abort
|
||||
endif
|
||||
|
||||
if s:is_bad_response(latest)
|
||||
call health#report_warn('Unable to contact PyPI.')
|
||||
call health#report_warn('Could not contact PyPI to get latest version.')
|
||||
call health#report_error('HTTP request failed: '.latest)
|
||||
endif
|
||||
|
||||
if s:is_bad_response(status)
|
||||
elseif s:is_bad_response(status)
|
||||
call health#report_warn(printf('Latest %s-neovim is NOT installed: %s',
|
||||
\ python_bin_name, latest))
|
||||
elseif !s:is_bad_response(latest) !s:is_bad_response(current)
|
||||
elseif !s:is_bad_response(current)
|
||||
call health#report_ok(printf('Latest %s-neovim is installed: %s',
|
||||
\ python_bin_name, latest))
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user