diff options
| author | Misty De Meo | 2012-11-28 10:58:29 -0600 |
|---|---|---|
| committer | Misty De Meo | 2012-11-28 10:58:29 -0600 |
| commit | db9750b9995959c2423abaae9ff4d098bd9187dd (patch) | |
| tree | d8a9c0249aa57593b8c928a7fe1504d80d8c1bba /Library | |
| parent | 77790df2552e8fa3027b4c0238a70904125fd09b (diff) | |
| download | homebrew-db9750b9995959c2423abaae9ff4d098bd9187dd.tar.bz2 | |
Fix Formula.factory for Formula subclasses
Fixes #16288.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
