aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-16 22:32:18 -0500
committerJack Nagel2014-09-16 22:32:18 -0500
commit72d74053a2a51dc331277363340b7848127d692c (patch)
treecd93ff1e1e118d7c0bb3363fa07553982b19094a /Library
parent0031e1947df198f16b86d9c1bf2b39ad15b1178e (diff)
downloadbrew-72d74053a2a51dc331277363340b7848127d692c.tar.bz2
Fix variable shadowing bug in requirement expansion
Long term we should probably rename the installer's "f" attribute to "formula".
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 8178f9582..bb76a69cd 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -254,9 +254,9 @@ class FormulaInstaller
if (req.optional? || req.recommended?) && build.without?(req)
Requirement.prune
- elsif req.build? && dependent == f && pour_bottle?
+ elsif req.build? && dependent == self.f && pour_bottle?
Requirement.prune
- elsif req.build? && dependent != f && install_bottle_for_dep?(dependent, build)
+ elsif req.build? && dependent != self.f && install_bottle_for_dep?(dependent, build)
Requirement.prune
elsif install_requirement_default_formula?(req, build)
dep = req.to_dependency