Skip to content

Commit

Permalink
Merge pull request #3864 from MikeMcQuaid/migrator-upgrade
Browse files Browse the repository at this point in the history
migrator: recommend upgrade.
  • Loading branch information
ilovezfs authored Mar 3, 2018
2 parents 84d718c + 2f776ed commit 08f7e8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Library/Homebrew/migrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ def migrate
link_oldname_opt
link_newname unless old_linked_keg.nil?
update_tabs
return unless formula.outdated?
opoo <<~EOS
#{Formatter.identifier(newname)} is outdated! Please run as soon as possible:
brew upgrade #{newname}
EOS
rescue Interrupt
ignore_interrupts { backup_oldname }
rescue Exception => e # rubocop:disable Lint/RescueException
Expand Down

0 comments on commit 08f7e8c

Please sign in to comment.