diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index c9d1f42d65be1683ea40c31c26230454a6dd3b6f..ab0e36029e7f3c3c27f45e592ef956120d7b4a28 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -341,10 +341,10 @@ class FormulaInstaller end def expand_dependencies(deps) - inherited_options = {} + inherited_options = Hash.new { |hash, key| hash[key] = Options.new } expanded_deps = Dependency.expand(formula, deps) do |dependent, dep| - options = inherited_options[dep.name] = inherited_options_for(dep) + inherited_options[dep.name] |= inherited_options_for(dep) build = effective_build_options_for( dependent, inherited_options.fetch(dependent.name, []) @@ -354,7 +354,7 @@ class FormulaInstaller Dependency.prune elsif dep.build? && install_bottle_for?(dependent, build) Dependency.prune - elsif dep.satisfied?(options) + elsif dep.satisfied?(inherited_options[dep.name]) Dependency.skip end end