diff options
| author | Jack Nagel | 2014-04-04 10:12:09 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-04 10:14:24 -0500 |
| commit | 611f1a1b4238374ec068de496b3cb674d072f52b (patch) | |
| tree | f1c17e08606812b053cafa6789177ad110000912 /Library | |
| parent | efe7fe77a1382114ac4706e42a4acb2f18e1427a (diff) | |
| download | brew-611f1a1b4238374ec068de496b3cb674d072f52b.tar.bz2 | |
Fix universal option inheritance during upgrades
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index a84827a55..8c685d88c 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -323,11 +323,11 @@ class FormulaInstaller end def inherited_options_for(dep) - options = Options.new - if f.build.universal? && !dep.build? && dep.to_formula.build.has_option?("universal") - options << Option.new("universal") + inherited_options = Options.new + if options.include?("universal") && !dep.build? && dep.to_formula.build.has_option?("universal") + inherited_options << Option.new("universal") end - options + inherited_options end def install_dependencies(deps) |
