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
commita0a8b96e7bf5bc286dfee717e4b92bc32b9ca2a4 (patch)
tree2a20988e83c3dc3a9bfb52144bf85b6aed6aa9b6 /Library/Homebrew/cmd
parentf858b6e3d03fd4006e79990b88af1bd4a467d35a (diff)
downloadhomebrew-a0a8b96e7bf5bc286dfee717e4b92bc32b9ca2a4.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