diff options
| author | Xu Cheng | 2015-05-15 19:41:31 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-05-27 13:53:40 +0800 |
| commit | e91d152af8d752691e3215190dccc66c60a0e506 (patch) | |
| tree | 12f10f7bbd7c82572cef16d95795452b76098c6d /Library | |
| parent | 074de88a9be6c62698d078d958aa04cce9f03480 (diff) | |
| download | brew-e91d152af8d752691e3215190dccc66c60a0e506.tar.bz2 | |
Formulary#canonical_name: handle TapFormulaAmbiguityError
If there are multiple tap formulae with the name of ref,
then ref is the canonical name
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
