install: perform rename migrations when needed.

This commit is contained in:
Mike McQuaid 2017-03-29 11:25:21 +01:00
parent ffd706d997
commit d82522060e

View File

@ -199,7 +199,10 @@ module Homebrew
perform_preinstall_checks perform_preinstall_checks
formulae.each { |f| install_formula(f) } formulae.each do |f|
Migrator.migrate_if_needed(f)
install_formula(f)
end
rescue FormulaClassUnavailableError => e rescue FormulaClassUnavailableError => e
# Need to rescue before `FormulaUnavailableError` (superclass of this) # Need to rescue before `FormulaUnavailableError` (superclass of this)
# is handled, as searching for a formula doesn't make sense here (the # is handled, as searching for a formula doesn't make sense here (the