info: show latest version
This commit is contained in:
parent
cc03c2c15c
commit
91fffeeff6
@ -244,7 +244,13 @@ module Homebrew
|
|||||||
specs = []
|
specs = []
|
||||||
|
|
||||||
if (stable = f.stable)
|
if (stable = f.stable)
|
||||||
s = "stable #{stable.version}"
|
latest_version = if ENV["HOMEBREW_JSON_CORE"].present?
|
||||||
|
BottleAPI.latest_pkg_version(f.name).version || stable.version
|
||||||
|
else
|
||||||
|
stable.version
|
||||||
|
end
|
||||||
|
|
||||||
|
s = "stable #{latest_version}"
|
||||||
s += " (bottled)" if stable.bottled? && f.pour_bottle?
|
s += " (bottled)" if stable.bottled? && f.pour_bottle?
|
||||||
specs << s
|
specs << s
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user