Revert "Use the dependency object as the key in the inherited_options hash"
This reverts commit c8d3b39165bb11799d7849ee13a3559ad0bd63f4.
This commit is contained in:
parent
1ef2819979
commit
ccf37d5ac0
@ -278,7 +278,7 @@ class FormulaInstaller
|
||||
inherited_options = {}
|
||||
|
||||
expanded_deps = Dependency.expand(f, deps) do |dependent, dep|
|
||||
options = inherited_options[dep] = inherited_options_for(dep)
|
||||
options = inherited_options[dep.name] = inherited_options_for(dep)
|
||||
build = effective_build_options_for(
|
||||
dependent,
|
||||
inherited_options.fetch(dependent.name, [])
|
||||
@ -295,7 +295,7 @@ class FormulaInstaller
|
||||
end
|
||||
end
|
||||
|
||||
expanded_deps.map { |dep| [dep, inherited_options[dep]] }
|
||||
expanded_deps.map { |dep| [dep, inherited_options[dep.name]] }
|
||||
end
|
||||
|
||||
def effective_build_options_for(dependent, inherited_options=[])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user