diff options
| author | Mike McQuaid | 2012-04-13 14:56:12 +1000 |
|---|---|---|
| committer | Mike McQuaid | 2012-04-24 18:53:45 +1000 |
| commit | 0eb97d5c32158363859ad7618885b4fa8293768e (patch) | |
| tree | 7ba5bbc7564922167b2bfbe965fd1df1a10d1789 /Library | |
| parent | ebe4e07fa36aafbe2b811969d8aac0f36be340c0 (diff) | |
| download | brew-0eb97d5c32158363859ad7618885b4fa8293768e.tar.bz2 | |
Generate the bottle download URL correctly.
Fixes Homebrew/homebrew#11561.
Fixes Homebrew/homebrew#11614.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index cecb904ab..d0e270137 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -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 |
