aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilovezfs2018-03-02 21:18:22 -0800
committerGitHub2018-03-02 21:18:22 -0800
commit08f7e8c5887d1c654a1a5d5bc851a9c9d5a00371 (patch)
tree7f75438acdcc2ea242fe087d1adf3f587079abae
parent84d718cbef0b96ef621a2ec51171f7d66c20f87d (diff)
parent2f776ed5233cf9620d7a9284b013a8a0f6572d10 (diff)
downloadbrew-1.5.8.tar.bz2
Merge pull request #3864 from MikeMcQuaid/migrator-upgrade1.5.8
migrator: recommend upgrade.
-rw-r--r--Library/Homebrew/migrator.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb
index 3ccf2f23c..7287a3c88 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