diff options
| author | Jack Nagel | 2014-09-16 22:32:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-16 22:32:18 -0500 |
| commit | bbf48f635d80d882d44cbb409d5e3b9a7fc14922 (patch) | |
| tree | bda0b3ee1fda8b122a16f1166825c72503cf3834 /Library/Homebrew | |
| parent | 78c6619f5639a755844a099c6eaf254b15a9aceb (diff) | |
| download | homebrew-bbf48f635d80d882d44cbb409d5e3b9a7fc14922.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/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 4 |
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 |
