aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/upgrade.rb
diff options
context:
space:
mode:
authorNicolas Despres2012-04-20 17:07:45 +0200
committerJack Nagel2012-05-05 12:24:56 -0500
commit1c74a942768ad47dc18f0dbdd9b46fead5d75646 (patch)
tree1696ae7e83627f78be1b682c10ac57d7c248a0b5 /Library/Homebrew/cmd/upgrade.rb
parentc1c5ee9a2a375c60cd5eff8a114250f12b78642e (diff)
downloadhomebrew-1c74a942768ad47dc18f0dbdd9b46fead5d75646.tar.bz2
Honor build options and bottles when upgrading
Fixes #11552. Closes #11777. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/upgrade.rb')
-rw-r--r--Library/Homebrew/cmd/upgrade.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index d9c130972..566649ed3 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -54,6 +54,7 @@ module Homebrew extend self
installer = FormulaInstaller.new(f, tab)
installer.show_header = false
+ installer.install_bottle = install_bottle?(f) and tab.used_options.empty?
oh1 "Upgrading #{f.name}"