Handle :public_domain licenses.

This commit is contained in:
Carlo Cabrera 2022-09-13 19:47:46 +08:00
parent dfd5895970
commit c8c5dc199e
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -196,7 +196,7 @@ module Homebrew
if formula.license.present?
licenses, exceptions = SPDX.parse_license_expression formula.license
sspl_licensed = licenses.any? { |license| license.start_with?("SSPL") }
sspl_licensed = licenses.any? { |license| license.to_s.start_with?("SSPL") }
if sspl_licensed && @core_tap
problem <<~EOS
Formula #{formula.name} is SSPL-licensed. Software under the SSPL must not be packaged in homebrew/core.