aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-19 10:53:39 -0700
committerAdam Vandenberg2010-09-29 21:44:46 -0700
commit400aa9eac95523cc832b8e09d11983bb95cae40f (patch)
tree2c7ca751bb77dc2aa9a60798f66fb8f584125a89 /Library
parent5707787358b795c5c2e9891346203e0283e64d0b (diff)
downloadbrew-400aa9eac95523cc832b8e09d11983bb95cae40f.tar.bz2
Don't allow unsupported dep types
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index c3de92f9a..8eac1fc27 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -521,6 +521,8 @@ EOF
@external_deps[value] << key
when :optional, :recommended
@deps << key
+ else
+ raise "Unsupported dependency type #{value}"
end
when Symbol
opoo "#{self.name} -- #{name}: Using symbols for deps is deprecated; use a string instead"