Skip to content
Snippets Groups Projects
Unverified Commit da06e813 authored by Vlad Shablinsky's avatar Vlad Shablinsky Committed by Xu Cheng
Browse files

cmd/install: use migration_needed?


Closes #411.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 0d3b5f68
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,7 @@ module Homebrew
msg = "#{f.full_name}-#{f.installed_version} already installed"
msg << ", it's just not linked" unless f.linked_keg.symlink? || f.keg_only?
opoo msg
elsif f.oldname && (dir = HOMEBREW_CELLAR/f.oldname).directory? && !dir.subdirs.empty? \
&& f.tap == Tab.for_keg(dir.subdirs.first).tap && !ARGV.force?
elsif f.migration_needed? && !ARGV.force?
# Check if the formula we try to install is the same as installed
# but not migrated one. If --force passed then install anyway.
opoo "#{f.oldname} already installed, it's just not migrated"
......
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