From c8c5dc199ee041c521c29b54973bffd9213f31c2 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Tue, 13 Sep 2022 19:47:46 +0800 Subject: [PATCH] Handle `:public_domain` licenses. --- Library/Homebrew/formula_auditor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 0b229b50b4..df955690dc 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -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.