From 5d82f67427f38871c64ab567ef16216a602afd68 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 11 Sep 2020 13:10:42 +0100 Subject: [PATCH] formula: use pretty license output in JSON. This will improve things for formulae.brew.sh. --- 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 92b409d3d6..7682da5c8f 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1697,7 +1697,7 @@ class Formula "aliases" => aliases.sort, "versioned_formulae" => versioned_formulae.map(&:name), "desc" => desc, - "license" => license, + "license" => SPDX.license_expression_to_string(license), "homepage" => homepage, "versions" => { "stable" => stable&.version&.to_s,