One less external call to #active_spec
This commit is contained in:
parent
b43876d4a2
commit
77a1c6f166
@ -212,6 +212,10 @@ class Formula
|
||||
active_spec.deprecated_options
|
||||
end
|
||||
|
||||
def deprecated_flags
|
||||
active_spec.deprecated_flags
|
||||
end
|
||||
|
||||
# If a named option is defined for the currently active {SoftwareSpec}.
|
||||
def option_defined?(name)
|
||||
active_spec.option_defined?(name)
|
||||
|
||||
@ -154,7 +154,7 @@ class FormulaInstaller
|
||||
raise "Unrecognized architecture for --bottle-arch: #{arch}"
|
||||
end
|
||||
|
||||
formula.active_spec.deprecated_flags.each do |deprecated_option|
|
||||
formula.deprecated_flags.each do |deprecated_option|
|
||||
old_flag = deprecated_option.old_flag
|
||||
new_flag = deprecated_option.current_flag
|
||||
opoo "#{formula.name}: #{old_flag} was deprecated; using #{new_flag} instead!"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user