diff options
| author | Mike McQuaid | 2018-03-02 21:23:04 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2018-03-02 21:23:07 +0000 |
| commit | 2f776ed5233cf9620d7a9284b013a8a0f6572d10 (patch) | |
| tree | b492a8fea7c06c4c439bd0a651d3742ecec7d256 | |
| parent | 6302da37f66fe9bb04e95fe67e8529fe0086187d (diff) | |
| download | brew-2f776ed5233cf9620d7a9284b013a8a0f6572d10.tar.bz2 | |
migrator: recommend `brew upgrade`.
You’re in a weird middle state if you run `brew update` but haven’t
upgraded a migrated formula.
| -rw-r--r-- | Library/Homebrew/migrator.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb index 8664d474b..6c0321938 100644 --- a/Library/Homebrew/migrator.rb +++ b/Library/Homebrew/migrator.rb @@ -193,6 +193,11 @@ class Migrator 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 |
