From bfee201a183d9ddc19643f21d906ccc48be51ad5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 23 Feb 2015 15:12:09 +0000 Subject: [PATCH] test-bot: don't blow up if formula can't be found. --- Library/Homebrew/cmd/test-bot.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb index 18923ecc6e..791ac57843 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