From 272d68740fe9133042ac6a36fd7eeb7e599894ae Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 3 May 2015 13:15:40 +0800 Subject: [PATCH] Use TapFormulaUnavailableError instead of HOMEBREW_TAP_FORMULA_REGEX Closes Homebrew/homebrew#39307. Signed-off-by: Xu Cheng --- Library/Homebrew/formula_installer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index ee6627ba08..2d6aa7b0f3 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -197,11 +197,11 @@ class FormulaInstaller begin f = Formulary.factory(c.name) f.linked_keg.exist? && f.opt_prefix.exist? - rescue FormulaUnavailableError - raise unless c.name =~ HOMEBREW_TAP_FORMULA_REGEX + rescue TapFormulaUnavailableError # 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 # currently tapped. + next end end