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, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb
index 45e195939..9da41a6c7 100644
--- a/Library/Homebrew/cmd/outdated.rb
+++ b/Library/Homebrew/cmd/outdated.rb
@@ -18,10 +18,8 @@ module Homebrew
all_versions = []
older_or_same_tap_versions = []
- if f.oldname && !f.rack.exist?
- if Pathname.new("#{HOMEBREW_CELLAR}/#{f.oldname}").exist?
- raise Migrator::MigrationNeededError.new(f)
- end
+ if f.oldname && !f.rack.exist? && (HOMEBREW_CELLAR/f.oldname).exist?
+ raise Migrator::MigrationNeededError.new(f)
end
f.rack.subdirs.each do |dir|