Generate the bottle download URL correctly.
Fixes Homebrew/homebrew#11561. Fixes Homebrew/homebrew#11614.
This commit is contained in:
parent
1fc97a81ec
commit
2c46c4e0c2
@ -61,6 +61,8 @@ class Formula
|
||||
CHECKSUM_TYPES.each { |type| set_instance_variable type }
|
||||
|
||||
@downloader = download_strategy.new @spec_to_use.url, name, version, @spec_to_use.specs
|
||||
|
||||
@bottle_url ||= bottle_base_url + bottle_filename(self) if @bottle_sha1
|
||||
end
|
||||
|
||||
# if the dir is there, but it's empty we consider it not installed
|
||||
@ -632,7 +634,6 @@ private
|
||||
|
||||
bottle_block.instance_eval &block
|
||||
@bottle_version, @bottle_url, @bottle_sha1 = bottle_block.data
|
||||
@bottle_url ||= bottle_base_url + bottle_filename(self) if @bottle_sha1
|
||||
end
|
||||
|
||||
def mirror val, specs=nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user