Skip to content
Snippets Groups Projects
Commit 5d1e6481 authored by Xu Cheng's avatar Xu Cheng
Browse files

test-bot: prevent infinite loop caused by unavailable formula.

Noted, `brew tap foo` will not fail if the tap is already installed.
parent 684c44f3
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,7 @@ module Homebrew
def safe_formula_canonical_name(formula_name)
Formulary.factory(formula_name).full_name
rescue TapFormulaUnavailableError => e
raise if e.tap.installed?
test "brew", "tap", e.tap.name
retry unless steps.last.failed?
rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment