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
commit6379757f2fa59d840a36305647e85e5bc3b38010 (patch)
treee77643c85453bb9606cf7c303c83343db55c90ab /Library
parentceea8c4a2c5f9ba5581072201021986447ae088a (diff)
downloadhomebrew-6379757f2fa59d840a36305647e85e5bc3b38010.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"