dev-cmd/bottle: fix license output.

Don't output the complex license object but instead use the same format
we use for `Formula#to_hash`.
This commit is contained in:
Mike McQuaid 2021-04-06 14:41:27 +01:00
parent a6bbc10227
commit 5cae3f4096
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -532,7 +532,7 @@ module Homebrew
"tap_git_revision" => tap_git_revision, "tap_git_revision" => tap_git_revision,
"tap_git_remote" => tap_git_remote, "tap_git_remote" => tap_git_remote,
"desc" => f.desc, "desc" => f.desc,
"license" => f.license, "license" => SPDX.license_expression_to_string(f.license),
"homepage" => f.homepage, "homepage" => f.homepage,
}, },
"bottle" => { "bottle" => {