Skip broken formulae

This commit is contained in:
Adam Vandenberg 2010-07-18 14:07:40 -07:00
parent ef6488bf5e
commit 7ff5de2ad8

View File

@ -188,7 +188,15 @@ class Formula
# an array of all Formula, instantiated
def self.all
names.map{ |fn| Formula.factory(fn) }
all = []
names.each do |n|
begin
all << Formula.factory(n)
rescue
# Don't let one broken formula break commands.
end
end
return all
end
def self.aliases