test-bot: upload packages from canonical name.

This commit is contained in:
Mike McQuaid 2015-02-23 17:15:20 +00:00
parent bfee201a18
commit 1f541f7dfb

View File

@ -725,8 +725,12 @@ module Homebrew
existing_bottles = {}
Dir.glob("*.bottle*.tar.gz") do |filename|
formula_name = bottle_filename_formula_name filename
formula = Formulary.factory formula_name rescue nil
next unless formula
canonical_formula_name = if tap
"#{tap}/#{formula_name}"
else
formula_name
end
formula = Formulary.factory canonical_formula_name
existing_bottles[formula_name] = !!formula.bottle
end