test-bot: don't blow up if formula can't be found.

This commit is contained in:
Mike McQuaid 2015-02-23 15:12:09 +00:00
parent a0e2232b43
commit bfee201a18

View File

@ -725,7 +725,8 @@ module Homebrew
existing_bottles = {} existing_bottles = {}
Dir.glob("*.bottle*.tar.gz") do |filename| Dir.glob("*.bottle*.tar.gz") do |filename|
formula_name = bottle_filename_formula_name 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 existing_bottles[formula_name] = !!formula.bottle
end end