Skip to content
Snippets Groups Projects
Commit c8fd1214 authored by Jack Nagel's avatar Jack Nagel
Browse files

Revert "Only do formula class sanity checks once"

This reverts commit ace78b1f3a59a893c7068e485555acf792470080.

Fixes Homebrew/homebrew#30154.
parent 014ac211
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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