aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-18 14:07:40 -0700
committerAdam Vandenberg2010-08-07 18:08:48 -0700
commit7ff5de2ad816e54eef5baa839365fd465088ae44 (patch)
tree68c97da5e50277414383d4b14baea7121f861cb1
parentef6488bf5ede474aeffd3cb696078f04bdea7667 (diff)
downloadbrew-7ff5de2ad816e54eef5baa839365fd465088ae44.tar.bz2
Skip broken formulae
-rw-r--r--Library/Homebrew/formula.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index b2c684d92..5e97330b9 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -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