From 02d8bfe10b854c024db060488664d34e96287ca3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 14 Aug 2015 15:13:44 +0100 Subject: [PATCH] install: mention if installed formula isn't migrated. Closes Homebrew/homebrew#42940. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/install.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 45d56701ab..3ef27748ce 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -71,7 +71,13 @@ module Homebrew if f.installed? msg = "#{f.full_name}-#{f.installed_version} already installed" - msg << ", it's just not linked" unless f.linked_keg.symlink? || f.keg_only? + unless f.linked_keg.symlink? + if Pathname.new("#{HOMEBREW_CELLAR}/#{f.oldname}").exist? + msg << ", it's just not migrated" + elsif !f.keg_only? + msg << ", it's just not linked" + end + end opoo msg else formulae << f