Fix brew-readall

This commit is contained in:
Adam Vandenberg 2010-07-18 14:20:54 -07:00
parent bead62a04a
commit c55fcc3a29

View File

@ -1,7 +1,14 @@
# `brew readall` tries to import all formulae one-by-one. # `brew readall` tries to import all formulae one-by-one.
# This can be useful for debugging issues across all formulae # This can be useful for debugging issues across all formulae
# when making significant changes to formula.rb # when making significant changes to formula.rb,
# or to determine if any current formulae have Ruby issues
require 'formula' require 'formula'
names = [] Formula.names.each do |n|
Formulary.read_all { |name, klass| names << name } begin
f = Formula.factory(n)
rescue Exception => e
onoe "problem in #{Formula.path(n)}"
puts e
end
end