aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-04 10:12:09 -0500
committerJack Nagel2014-04-04 10:14:24 -0500
commit611f1a1b4238374ec068de496b3cb674d072f52b (patch)
treef1c17e08606812b053cafa6789177ad110000912 /Library
parentefe7fe77a1382114ac4706e42a4acb2f18e1427a (diff)
downloadbrew-611f1a1b4238374ec068de496b3cb674d072f52b.tar.bz2
Fix universal option inheritance during upgrades
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb8
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)