Skip to content
Snippets Groups Projects
Commit c518e503 authored by Xu Cheng's avatar Xu Cheng
Browse files

install: f.oldname can be nil

parent 3a535ed3
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment