adapt to forbidden_license_check method signature
This commit is contained in:
parent
4836970fdc
commit
4de020ec6c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user