From a34c11874b96fa3e6c95eaabe891a3bf0a239217 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 17 Apr 2018 21:44:50 +0100 Subject: [PATCH] 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. --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 0f560a5623..f340503f4b 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1526,7 +1526,7 @@ class Formula "aliases" => aliases, "versions" => { "stable" => stable&.version&.to_s, - "bottle" => !bottle.nil?, + "bottle" => !bottle_specification.checksums.empty?, "devel" => devel&.version&.to_s, "head" => head&.version&.to_s, },