aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-05-03 13:15:40 +0800
committerXu Cheng2015-05-03 22:53:22 +0800
commit272d68740fe9133042ac6a36fd7eeb7e599894ae (patch)
treee9238d068ea22067bf8e30bdaa07b00ee5342452 /Library
parent04ac482809e164ea7304060b957d8caf72e10725 (diff)
downloadbrew-272d68740fe9133042ac6a36fd7eeb7e599894ae.tar.bz2
Use TapFormulaUnavailableError instead of HOMEBREW_TAP_FORMULA_REGEX
Closes Homebrew/homebrew#39307. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index ee6627ba0..2d6aa7b0f 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