doctor: don't pass pathnames to Formula.factory
Fixes Homebrew/homebrew#20908.
This commit is contained in:
parent
8e944d5728
commit
936f9487b1
@ -1023,7 +1023,7 @@ def check_for_unlinked_but_not_keg_only
|
||||
if not rack.directory?
|
||||
true
|
||||
elsif not (HOMEBREW_REPOSITORY/"Library/LinkedKegs"/rack.basename).directory?
|
||||
Formula.factory(rack.basename).keg_only? rescue nil
|
||||
Formula.factory(rack.basename.to_s).keg_only? rescue nil
|
||||
else
|
||||
true
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user