aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2015-02-23 15:12:09 +0000
committerMike McQuaid2015-02-23 15:12:09 +0000
commitbfee201a183d9ddc19643f21d906ccc48be51ad5 (patch)
tree272893539bb7f2841f5a88a1323a7df67a5e0b24 /Library/Homebrew/cmd
parenta0e2232b43b5c7b57fb3bf507b33e2e5565c4ff1 (diff)
downloadbrew-bfee201a183d9ddc19643f21d906ccc48be51ad5.tar.bz2
test-bot: don't blow up if formula can't be found.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 18923ecc6..791ac5784 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -725,7 +725,8 @@ module Homebrew
existing_bottles = {}
Dir.glob("*.bottle*.tar.gz") do |filename|
formula_name = bottle_filename_formula_name filename
- formula = Formulary.factory formula_name
+ formula = Formulary.factory formula_name rescue nil
+ next unless formula
existing_bottles[formula_name] = !!formula.bottle
end