Skip to content
Snippets Groups Projects
Commit 60b1be67 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

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
parents b4dd5146 417f27f4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment