aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2018-03-02 21:23:04 +0000
committerMike McQuaid2018-03-02 21:23:07 +0000
commit2f776ed5233cf9620d7a9284b013a8a0f6572d10 (patch)
treeb492a8fea7c06c4c439bd0a651d3742ecec7d256
parent6302da37f66fe9bb04e95fe67e8529fe0086187d (diff)
downloadbrew-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.rb5
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