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.
|
# exists and is not empty.
|
||||||
# @private
|
# @private
|
||||||
def latest_version_installed?
|
def latest_version_installed?
|
||||||
latest_prefix = if ENV["HOMEBREW_JSON_CORE"].present?
|
latest_prefix = if ENV["HOMEBREW_JSON_CORE"].present? && (latest_pkg_version = BottleAPI.latest_pkg_version(name))
|
||||||
prefix BottleAPI.latest_pkg_version(name)
|
prefix latest_pkg_version
|
||||||
else
|
else
|
||||||
latest_installed_prefix
|
latest_installed_prefix
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user