From 2f776ed5233cf9620d7a9284b013a8a0f6572d10 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 2 Mar 2018 21:23:04 +0000 Subject: [PATCH] migrator: recommend `brew upgrade`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You’re in a weird middle state if you run `brew update` but haven’t upgraded a migrated formula. --- Library/Homebrew/migrator.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb index 8664d474be..6c03219382 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