install: mention if installed formula isn't migrated.

Closes Homebrew/homebrew#42940.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2015-08-14 15:13:44 +01:00
parent 49dce3e7ae
commit 02d8bfe10b

View File

@ -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