aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-08-14 15:13:44 +0100
committerMike McQuaid2015-08-14 15:18:45 +0100
commit02d8bfe10b854c024db060488664d34e96287ca3 (patch)
tree0858f97d65409938823fab288bb1ff59e5391fb3 /Library
parent49dce3e7ae6923f00f603852287a435e7b21ddcb (diff)
downloadbrew-02d8bfe10b854c024db060488664d34e96287ca3.tar.bz2
install: mention if installed formula isn't migrated.
Closes Homebrew/homebrew#42940. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 45d56701a..3ef27748c 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