Remove unnecessary memoization from FormulaInstaller#build_argv
This commit is contained in:
parent
536430e0ae
commit
a12d3918d4
@ -373,14 +373,12 @@ class FormulaInstaller
|
|||||||
end
|
end
|
||||||
|
|
||||||
def build_argv
|
def build_argv
|
||||||
@build_argv ||= begin
|
opts = Options.coerce(ARGV.options_only)
|
||||||
opts = Options.coerce(ARGV.options_only)
|
unless opts.include? '--fresh'
|
||||||
unless opts.include? '--fresh'
|
opts.concat(options) # from a dependent formula
|
||||||
opts.concat(options) # from a dependent formula
|
opts.concat(tab.used_options) # from a previous install
|
||||||
opts.concat(tab.used_options) # from a previous install
|
|
||||||
end
|
|
||||||
opts << Option.new("--build-from-source") # don't download bottle
|
|
||||||
end
|
end
|
||||||
|
opts << Option.new("--build-from-source") # don't download bottle
|
||||||
end
|
end
|
||||||
|
|
||||||
def build
|
def build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user