Handle :public_domain
licenses.
This commit is contained in:
parent
dfd5895970
commit
c8c5dc199e
@ -196,7 +196,7 @@ module Homebrew
|
|||||||
if formula.license.present?
|
if formula.license.present?
|
||||||
licenses, exceptions = SPDX.parse_license_expression formula.license
|
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
|
if sspl_licensed && @core_tap
|
||||||
problem <<~EOS
|
problem <<~EOS
|
||||||
Formula #{formula.name} is SSPL-licensed. Software under the SSPL must not be packaged in homebrew/core.
|
Formula #{formula.name} is SSPL-licensed. Software under the SSPL must not be packaged in homebrew/core.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user