Formula is not a formula.

Closes Homebrew/homebrew#17492.
This commit is contained in:
Adam Vandenberg 2013-02-01 09:25:47 -08:00
parent b1bc9ec809
commit ea03719a34

View File

@ -444,6 +444,7 @@ class Formula
end
raise NameError if !klass.ancestors.include? Formula
raise NameError if klass == Formula
return klass.new(name) if install_type == :from_name
return klass.new(name, path.to_s)