Use TapFormulaUnavailableError instead of HOMEBREW_TAP_FORMULA_REGEX
Closes Homebrew/homebrew#39307. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
04ac482809
commit
272d68740f
@ -197,11 +197,11 @@ class FormulaInstaller
|
|||||||
begin
|
begin
|
||||||
f = Formulary.factory(c.name)
|
f = Formulary.factory(c.name)
|
||||||
f.linked_keg.exist? && f.opt_prefix.exist?
|
f.linked_keg.exist? && f.opt_prefix.exist?
|
||||||
rescue FormulaUnavailableError
|
rescue TapFormulaUnavailableError
|
||||||
raise unless c.name =~ HOMEBREW_TAP_FORMULA_REGEX
|
|
||||||
# If the formula name is in full-qualified name. Let's silently
|
# If the formula name is in full-qualified name. Let's silently
|
||||||
# ignore it as we don't care about things used in taps that aren't
|
# ignore it as we don't care about things used in taps that aren't
|
||||||
# currently tapped.
|
# currently tapped.
|
||||||
|
next
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user