aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-05-17 20:25:03 +0800
committerXu Cheng2015-05-27 13:53:41 +0800
commit04c274f7278b309fe3766d4306910072cc2c87dc (patch)
treee074fb097b412a5f9aa3bdd042aaa84a2fccaa99 /Library
parent5ca7035e322b9ad1c64b79d2c46b4d1748b96d33 (diff)
downloadbrew-04c274f7278b309fe3766d4306910072cc2c87dc.tar.bz2
doctor: load formula from rack
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index fdfcacb43..586de0c7e 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -1143,8 +1143,8 @@ def check_for_unlinked_but_not_keg_only
true
elsif not (HOMEBREW_REPOSITORY/"Library/LinkedKegs"/rack.basename).directory?
begin
- Formulary.factory(rack.basename.to_s).keg_only?
- rescue FormulaUnavailableError
+ Formulary.from_rack(rack).keg_only?
+ rescue FormulaUnavailableError, TapFormulaAmbiguityError
false
end
else