aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-29 21:26:28 -0500
committerJack Nagel2013-06-29 21:26:49 -0500
commit936f9487b1766c76d39d47cc12d40db6a5b79d31 (patch)
tree205ce43154d0835f017575dc95cc69d07b20243b /Library
parent8e944d5728d6738b9b08f34413cb0124f9b0e2da (diff)
downloadbrew-936f9487b1766c76d39d47cc12d40db6a5b79d31.tar.bz2
doctor: don't pass pathnames to Formula.factory
Fixes Homebrew/homebrew#20908.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index ad8892baa..480af7b7a 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -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