diff options
| author | Mike McQuaid | 2015-02-19 12:57:08 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-19 12:58:56 +0000 |
| commit | e773d0c3b915edfc490c0c6f57f2f1cead88c64e (patch) | |
| tree | 5f150cefc06f1c94d7b1af7fd65993bf3700650a /Library/Homebrew/cmd/pull.rb | |
| parent | e5f145ababc6635024260820c98af6e0980a9662 (diff) | |
| download | brew-e773d0c3b915edfc490c0c6f57f2f1cead88c64e.tar.bz2 | |
pull: use Bintray package naming.
Diffstat (limited to 'Library/Homebrew/cmd/pull.rb')
| -rw-r--r-- | Library/Homebrew/cmd/pull.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 2b8da3475..c750cb8a4 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -161,14 +161,15 @@ module Homebrew bintray_key = ENV["BINTRAY_KEY"] if bintray_user && bintray_key - bintray_repo = Bintray.repository(tap_name) + repo = Bintray.repository(tap_name) changed_formulae.each do |f| next unless `git show --oneline --no-patch` =~ /: add .+ bottle./ ohai "Publishing on Bintray:" + package = Bintray.package f.name version = Bintray.version(f.bottle.url) curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}", "-X", "POST", - "https://api.bintray.com/content/homebrew/#{bintray_repo}/#{f.name}/#{version}/publish" + "https://api.bintray.com/content/homebrew/#{repo}/#{package}/#{version}/publish" puts end end |
