aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-24 16:09:55 -0500
committerJack Nagel2014-08-24 16:11:51 -0500
commitc8d3b39165bb11799d7849ee13a3559ad0bd63f4 (patch)
treefdcafc9a7e35ef31570198d58029aebd00ec87d0 /Library
parenta3eedcb1de970af04d9dd1ee53c8dd6958abe194 (diff)
downloadhomebrew-c8d3b39165bb11799d7849ee13a3559ad0bd63f4.tar.bz2
Use the dependency object as the key in the inherited_options hash
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index dea717eda..debaffe87 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -278,7 +278,7 @@ class FormulaInstaller
inherited_options = {}
expanded_deps = Dependency.expand(f, deps) do |dependent, dep|
- options = inherited_options[dep.name] = inherited_options_for(dep)
+ options = inherited_options[dep] = 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.name]] }
+ expanded_deps.map { |dep| [dep, inherited_options[dep]] }
end
def effective_build_options_for(dependent, inherited_options=[])