From 4de020ec6c1167daca13294b80b6d9abf14aef0a Mon Sep 17 00:00:00 2001 From: lionellloh Date: Thu, 9 Jul 2020 11:38:23 +0800 Subject: [PATCH] adapt to forbidden_license_check method signature --- Library/Homebrew/formula_installer.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 0a906b3020..339c74194d 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -149,7 +149,7 @@ class FormulaInstaller def prelude Tab.clear_cache verify_deps_exist unless ignore_deps? - forbidden_license_check(formula) + forbidden_license_check check_install_sanity end @@ -1107,7 +1107,8 @@ class FormulaInstaller end def forbidden_license_check - forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.split(" ") + + forbidden_licenses = (Homebrew::EnvConfig.forbidden_licenses || "").split(" ") return if forbidden_licenses.blank? if forbidden_licenses.include? formula.license