formula: tweak to_hash bottle output.

Make some changes required to have `brew info --json=v1` whether there
is any bottle block rather than a bottle checksum for the given system.

This provides more consistent output.
This commit is contained in:
Mike McQuaid 2018-04-17 21:44:50 +01:00
parent 7166289ad7
commit a34c11874b

View File

@ -1526,7 +1526,7 @@ class Formula
"aliases" => aliases, "aliases" => aliases,
"versions" => { "versions" => {
"stable" => stable&.version&.to_s, "stable" => stable&.version&.to_s,
"bottle" => !bottle.nil?, "bottle" => !bottle_specification.checksums.empty?,
"devel" => devel&.version&.to_s, "devel" => devel&.version&.to_s,
"head" => head&.version&.to_s, "head" => head&.version&.to_s,
}, },