aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/outdated.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/outdated.rb')
-rw-r--r--Library/Homebrew/cmd/outdated.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb
index 9da41a6c7..65ef89759 100644
--- a/Library/Homebrew/cmd/outdated.rb
+++ b/Library/Homebrew/cmd/outdated.rb
@@ -18,8 +18,10 @@ module Homebrew
all_versions = []
older_or_same_tap_versions = []
- if f.oldname && !f.rack.exist? && (HOMEBREW_CELLAR/f.oldname).exist?
- raise Migrator::MigrationNeededError.new(f)
+ if f.oldname && !f.rack.exist? && (dir = HOMEBREW_CELLAR/f.oldname).exist?
+ if f.tap == Tab.for_keg(dir.subdirs.first).tap
+ raise Migrator::MigrationNeededError.new(f)
+ end
end
f.rack.subdirs.each do |dir|