Skip to content
Snippets Groups Projects
Commit 02d8bfe1 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

install: mention if installed formula isn't migrated.


Closes Homebrew/homebrew#42940.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 49dce3e7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment