Sanitize ARGV options that are reflected in the installer mode
This commit is contained in:
parent
53a2558473
commit
a465950874
@ -386,8 +386,15 @@ class FormulaInstaller
|
|||||||
@build_time ||= Time.now - @start_time unless pour_bottle? or ARGV.interactive? or @start_time.nil?
|
@build_time ||= Time.now - @start_time unless pour_bottle? or ARGV.interactive? or @start_time.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sanitized_ARGV_options
|
||||||
|
args = ARGV.options_only
|
||||||
|
args.delete "--ignore-dependencies" unless ignore_deps
|
||||||
|
args.delete "--only-dependencies" unless only_deps
|
||||||
|
args
|
||||||
|
end
|
||||||
|
|
||||||
def build_argv
|
def build_argv
|
||||||
opts = Options.coerce(ARGV.options_only)
|
opts = Options.coerce(sanitized_ARGV_options)
|
||||||
opts.concat(options) unless opts.include? "--fresh"
|
opts.concat(options) unless opts.include? "--fresh"
|
||||||
opts << Option.new("--build-from-source") # don't download bottle
|
opts << Option.new("--build-from-source") # don't download bottle
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user