formula: make JSON caveats output use consistent prefix.

This will avoid this changing depending on the generation location.
This commit is contained in:
Mike McQuaid 2019-02-15 17:39:20 +00:00
parent 2ca56f6731
commit 5d729dd310
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -1631,7 +1631,7 @@ class Formula
.uniq,
"requirements" => [],
"conflicts_with" => conflicts.map(&:name),
"caveats" => caveats,
"caveats" => caveats&.gsub(HOMEBREW_PREFIX, "$(brew --prefix)"),
"installed" => [],
"linked_keg" => linked_version&.to_s,
"pinned" => pinned?,