From 400aa9eac95523cc832b8e09d11983bb95cae40f Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 19 Sep 2010 10:53:39 -0700 Subject: Don't allow unsupported dep types --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library') 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" -- cgit v1.2.3