Honor build options and bottles when upgrading
Fixes Homebrew/homebrew#11552. Closes Homebrew/homebrew#11777. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
32ea2e3ad0
commit
c2fdcf1a34
@ -54,6 +54,7 @@ module Homebrew extend self
|
|||||||
|
|
||||||
installer = FormulaInstaller.new(f, tab)
|
installer = FormulaInstaller.new(f, tab)
|
||||||
installer.show_header = false
|
installer.show_header = false
|
||||||
|
installer.install_bottle = install_bottle?(f) and tab.used_options.empty?
|
||||||
|
|
||||||
oh1 "Upgrading #{f.name}"
|
oh1 "Upgrading #{f.name}"
|
||||||
|
|
||||||
|
|||||||
@ -182,7 +182,12 @@ class FormulaInstaller
|
|||||||
|
|
||||||
args = ARGV.clone
|
args = ARGV.clone
|
||||||
unless args.include? '--fresh'
|
unless args.include? '--fresh'
|
||||||
args.concat tab.used_options unless tab.nil?
|
unless tab.nil?
|
||||||
|
args.concat tab.used_options
|
||||||
|
# FIXME: enforce the download of the non-bottled package
|
||||||
|
# in the spawned Ruby process.
|
||||||
|
args << '--build-from-source'
|
||||||
|
end
|
||||||
args.uniq! # Just in case some dupes were added
|
args.uniq! # Just in case some dupes were added
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user