Merge pull request #3985 from HaraldNordgren/brew_install__search_casks_if_not_found
brew install: search casks if not found
This commit is contained in:
commit
6a56181dcd
@ -257,10 +257,10 @@ module Homebrew
|
||||
return
|
||||
end
|
||||
|
||||
query = query_regexp(e.name)
|
||||
regex = query_regexp(e.name)
|
||||
|
||||
ohai "Searching for similarly named formulae..."
|
||||
formulae_search_results = search_formulae(query)
|
||||
formulae_search_results = search_formulae(regex)
|
||||
case formulae_search_results.length
|
||||
when 0
|
||||
ofail "No similarly named formulae found."
|
||||
@ -277,7 +277,7 @@ module Homebrew
|
||||
# Do not search taps if the formula name is qualified
|
||||
return if e.name.include?("/")
|
||||
ohai "Searching taps..."
|
||||
taps_search_results = search_taps(query)
|
||||
taps_search_results = search_taps(e.name)
|
||||
case taps_search_results.length
|
||||
when 0
|
||||
ofail "No formulae found in taps."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user