diff options
| author | Xu Cheng | 2015-08-15 15:56:57 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-08-15 15:56:57 +0800 |
| commit | c518e503202f8c07685dc00754a794a73ebc5754 (patch) | |
| tree | 3065035c6991bb7642ea175f24316efb2c163efe /Library/Homebrew/cmd | |
| parent | 3a535ed36b346694ab9f2143ef5f28e314318520 (diff) | |
| download | brew-c518e503202f8c07685dc00754a794a73ebc5754.tar.bz2 | |
install: f.oldname can be nil
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 2 |
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" |
