aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-12-07 22:09:54 +0000
committerGitHub2016-12-07 22:09:54 +0000
commit60b1be67950603d711acfc5cc275b42246641427 (patch)
tree50885df8303bb89cbd82dea53d65a0dc425fa23c /Library
parentb4dd5146edbfc3b493e1acf97bae629132b7b8a1 (diff)
parent417f27f40f112bdc228b9f2ab27fef8cea7c7d97 (diff)
downloadbrew-60b1be67950603d711acfc5cc275b42246641427.tar.bz2
Merge pull request #1629 from zmwangx/bump-formula-pr-download-to-correct-version
bump-formula-pr: use correct version in download path when --version is specified
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/bump-formula-pr.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
index c16165b88..b1f851b8d 100644
--- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb
+++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -134,6 +134,7 @@ module Homebrew
rsrc = Resource.new { @url = rsrc_url }
rsrc.download_strategy = CurlDownloadStrategy
rsrc.owner = Resource.new(formula.name)
+ rsrc.version = forced_version if forced_version
rsrc_path = rsrc.fetch
if Utils.popen_read("/usr/bin/tar", "-tf", rsrc_path) =~ %r{/.*\.}
new_hash = rsrc_path.sha256