aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorXu Cheng2015-08-15 15:56:57 +0800
committerXu Cheng2015-08-15 15:56:57 +0800
commitc518e503202f8c07685dc00754a794a73ebc5754 (patch)
tree3065035c6991bb7642ea175f24316efb2c163efe /Library/Homebrew/cmd
parent3a535ed36b346694ab9f2143ef5f28e314318520 (diff)
downloadbrew-c518e503202f8c07685dc00754a794a73ebc5754.tar.bz2
install: f.oldname can be nil
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/install.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 3ef27748c..19c826d44 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -72,7 +72,7 @@ module Homebrew
if f.installed?
msg = "#{f.full_name}-#{f.installed_version} already installed"
unless f.linked_keg.symlink?
- if Pathname.new("#{HOMEBREW_CELLAR}/#{f.oldname}").exist?
+ if f.oldname && (HOMEBREW_CELLAR/f.oldname).exist?
msg << ", it's just not migrated"
elsif !f.keg_only?
msg << ", it's just not linked"