Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
26c786fc0a
commit
67a974455b
@ -1123,7 +1123,7 @@ class FormulaInstaller
|
|||||||
next if @ignore_deps
|
next if @ignore_deps
|
||||||
|
|
||||||
dep_f = dep.to_formula
|
dep_f = dep.to_formula
|
||||||
next unless dep_f.license.all? { |lic| forbidden_licenses.include? lic }
|
next unless dep_f.license.all? { |license| forbidden_licenses.include? license }
|
||||||
|
|
||||||
raise CannotInstallFormulaError, <<~EOS
|
raise CannotInstallFormulaError, <<~EOS
|
||||||
The installation of #{formula.name} has a dependency on #{dep.name} where all its licenses are forbidden: #{dep_f.license}.
|
The installation of #{formula.name} has a dependency on #{dep.name} where all its licenses are forbidden: #{dep_f.license}.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user