aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-18 14:20:54 -0700
committerAdam Vandenberg2010-08-07 18:08:50 -0700
commit1f357845142dd2798e93f6178acb0d55ea56d644 (patch)
treeec7145d2e3ff055c690bd55059e10422027586ca /Library
parent73360006048b5e7d222dcb17c3beb40fceb6d4c9 (diff)
downloadhomebrew-1f357845142dd2798e93f6178acb0d55ea56d644.tar.bz2
Fix brew-readall
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-readall.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/Library/Contributions/examples/brew-readall.rb b/Library/Contributions/examples/brew-readall.rb
index 1a0c7ebe2..d04de565d 100755
--- a/Library/Contributions/examples/brew-readall.rb
+++ b/Library/Contributions/examples/brew-readall.rb
@@ -1,7 +1,14 @@
# `brew readall` tries to import all formulae one-by-one.
# 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'
-names = []
-Formulary.read_all { |name, klass| names << name }
+Formula.names.each do |n|
+ begin
+ f = Formula.factory(n)
+ rescue Exception => e
+ onoe "problem in #{Formula.path(n)}"
+ puts e
+ end
+end