From 9c294364c63e61da8a1e292ca8f7894354e5218d Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 28 Nov 2012 10:58:29 -0600 Subject: Fix Formula.factory for Formula subclasses Fixes Homebrew/homebrew#16288. --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index cb78221fd..d553846e3 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -395,7 +395,7 @@ class Formula raise LoadError end - raise NameError if klass.superclass != Formula + raise NameError if !klass.ancestors.include? Formula return klass.new(name) if install_type == :from_name return klass.new(name, path.to_s) -- cgit v1.2.3