diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb index 45e1959397..9da41a6c7e 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|