From a920f74671d0a9acf5bc50939333dbce98468b0c Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Mon, 13 Apr 2020 12:54:06 +0100 Subject: [PATCH] dev-cmd/pr-pull: fix strategy error --- Library/Homebrew/dev-cmd/pr-pull.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/dev-cmd/pr-pull.rb b/Library/Homebrew/dev-cmd/pr-pull.rb index fe432c56ca..6a069bdef9 100644 --- a/Library/Homebrew/dev-cmd/pr-pull.rb +++ b/Library/Homebrew/dev-cmd/pr-pull.rb @@ -187,7 +187,9 @@ module Homebrew next end - GitHub.fetch_artifact(user, repo, pr, dir, workflow_id: workflow, artifact_name: artifact) + GitHub.fetch_artifact(user, repo, pr, dir, workflow_id: workflow, + artifact_name: artifact, + strategy: CurlNoResumeDownloadStrategy) if Homebrew.args.dry_run? puts "brew bottle --merge --write #{Dir["*.json"].join " "}" @@ -200,9 +202,7 @@ module Homebrew if Homebrew.args.dry_run? puts "Upload bottles described by these JSON files to Bintray:\n #{Dir["*.json"].join("\n ")}" else - bintray.upload_bottle_json Dir["*.json"], - publish_package: !args.no_publish?, - strategy: CurlNoResumeDownloadStrategy + bintray.upload_bottle_json Dir["*.json"], publish_package: !args.no_publish? end end end