formula: fix latest_version_installed?
for HOMEBREW_JSON_CORE
This commit is contained in:
parent
9de68d7dce
commit
672f6dc3d7
@ -520,8 +520,8 @@ class Formula
|
||||
# exists and is not empty.
|
||||
# @private
|
||||
def latest_version_installed?
|
||||
latest_prefix = if ENV["HOMEBREW_JSON_CORE"].present?
|
||||
prefix BottleAPI.latest_pkg_version(name)
|
||||
latest_prefix = if ENV["HOMEBREW_JSON_CORE"].present? && (latest_pkg_version = BottleAPI.latest_pkg_version(name))
|
||||
prefix latest_pkg_version
|
||||
else
|
||||
latest_installed_prefix
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user