From e91d152af8d752691e3215190dccc66c60a0e506 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 15 May 2015 19:41:31 +0800 Subject: Formulary#canonical_name: handle TapFormulaAmbiguityError If there are multiple tap formulae with the name of ref, then ref is the canonical name --- Library/Homebrew/formulary.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 2a0d43f92..b8413f7a0 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -202,6 +202,10 @@ class Formulary def self.canonical_name(ref) loader_for(ref).name + rescue TapFormulaAmbiguityError + # If there are multiple tap formulae with the name of ref, + # then ref is the canonical name + ref.downcase end def self.path(ref) -- cgit v1.2.3