diff options
| author | Jack Nagel | 2014-06-14 16:04:28 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-14 16:04:38 -0500 |
| commit | decf7acced44bb156ba18677f55609b19ff6ca5a (patch) | |
| tree | 9d0a4171a97571fea264d88a4df94fd0e16e06a6 /Library/Homebrew | |
| parent | bad3f9aab256570ef1bbff0e45dfd2df2dbdfcc9 (diff) | |
| download | homebrew-decf7acced44bb156ba18677f55609b19ff6ca5a.tar.bz2 | |
Revert "Only do formula class sanity checks once"
This reverts commit ace78b1f3a59a893c7068e485555acf792470080.
Fixes #30154.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 8342c3ded..31a7fd51e 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -59,9 +59,7 @@ class Formulary raise FormulaUnavailableError.new(name) end - if have_klass - Formulary.get_formula_class(class_name) - else + unless have_klass STDERR.puts "#{$0} (#{self.class.name}): loading #{path}" if ARGV.debug? begin require path @@ -73,13 +71,13 @@ class Formulary raise if ARGV.debug? # let's see the REAL error raise FormulaUnavailableError.new(name) end + end - klass = Formulary.get_formula_class(class_name) - if klass == Formula || !(klass < Formula) - raise FormulaUnavailableError.new(name) - end - klass + klass = Formulary.get_formula_class(class_name) + if klass == Formula || !(klass < Formula) + raise FormulaUnavailableError.new(name) end + klass end end |
