aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-02-18 13:12:54 +0000
committerMike McQuaid2015-02-18 13:12:54 +0000
commit579f288bd2507d781d315e9fcc56ea6d52eaefee (patch)
tree4b0fa800eceb1961f0b8346e7b1de77498f2d811 /Library
parent675991eb611af0a970dce6945f5b882c4343875f (diff)
downloadbrew-579f288bd2507d781d315e9fcc56ea6d52eaefee.tar.bz2
test-bot: construct formula object correctly.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 21d328eaa..7d8d06960 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -707,8 +707,9 @@ module Homebrew
Dir.glob("*.bottle*.tar.gz") do |filename|
# Skip taps for now until we're using Bintray for Homebrew/homebrew
next if tap
- formula = bottle_filename_formula_name filename
- existing_bottles[formula.name] = !!formula.bottle
+ formula_name = bottle_filename_formula_name filename
+ formula = Formulary.factory formula_name
+ existing_bottles[formula_name] = !!formula.bottle
end
ENV["GIT_AUTHOR_NAME"] = ENV["GIT_COMMITTER_NAME"]
@@ -733,7 +734,7 @@ module Homebrew
next if tap
version = BottleVersion.parse(filename).to_s
formula = bottle_filename_formula_name filename
- existing_bottle = existing_bottles[formula.name]
+ existing_bottle = existing_bottles[formula]
repo_url = "https://api.bintray.com/packages/homebrew/#{repo}"
package_url = "#{repo_url}/#{formula}"