From a0a8b96e7bf5bc286dfee717e4b92bc32b9ca2a4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 23 Feb 2015 15:12:09 +0000 Subject: 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(-) (limited to 'Library') 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 -- cgit v1.2.3