diff options
| author | JCount | 2017-08-07 17:33:12 -0400 |
|---|---|---|
| committer | GitHub | 2017-08-07 17:33:12 -0400 |
| commit | ae1986ac910a888ceda5a0b18d14a3b3b7bcb446 (patch) | |
| tree | e39a40888f007b39909711a76075ae822ab364ae /Library/Homebrew/dev-cmd/mirror.rb | |
| parent | 6ef49d8b86e436cb37df1344019189a2f2df0bbb (diff) | |
| parent | 986887b413897413266151c92d5071d0a82cf966 (diff) | |
| download | brew-ae1986ac910a888ceda5a0b18d14a3b3b7bcb446.tar.bz2 | |
Merge pull request #3018 from Homebrew/revert-2848-refactoring
Revert "Refactor SVN and cURL download strategies."
Diffstat (limited to 'Library/Homebrew/dev-cmd/mirror.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/mirror.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/dev-cmd/mirror.rb b/Library/Homebrew/dev-cmd/mirror.rb index 6445bc34c..e2492203d 100644 --- a/Library/Homebrew/dev-cmd/mirror.rb +++ b/Library/Homebrew/dev-cmd/mirror.rb @@ -25,9 +25,9 @@ module Homebrew "public_download_numbers": true, "public_stats": true} EOS - curl "--silent", "--fail", "--user", "#{bintray_user}:#{bintray_key}", - "--header", "Content-Type: application/json", - "--data", package_blob, bintray_repo_url + curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}", + "-H", "Content-Type: application/json", + "-d", package_blob, bintray_repo_url puts end @@ -40,8 +40,8 @@ module Homebrew content_url = "https://api.bintray.com/content/homebrew/mirror" content_url += "/#{bintray_package}/#{f.pkg_version}/#{filename}" content_url += "?publish=1" - curl "--silent", "--fail", "--user", "#{bintray_user}:#{bintray_key}", - "--upload-file", download, content_url + curl "--silent", "--fail", "-u#{bintray_user}:#{bintray_key}", + "-T", download, content_url puts ohai "Mirrored #{filename}!" end |
