aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-02-01 09:25:47 -0800
committerAdam Vandenberg2013-02-01 09:25:47 -0800
commitea03719a340d4e7ea365e0defa7c250059db4329 (patch)
tree8d45674686ef22b53a8178b882a32ae4722b836f /Library
parentb1bc9ec809923782be6cfb7ff71e5c6cf9f98daa (diff)
downloadbrew-ea03719a340d4e7ea365e0defa7c250059db4329.tar.bz2
Formula is not a formula.
Closes Homebrew/homebrew#17492.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 8c68ad568..82410d3e8 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -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)