aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-13 10:01:01 -0500
committerJack Nagel2014-03-13 10:01:01 -0500
commit7dcb54a96314622c8319b8aa2a6669b778f87493 (patch)
treeca8f0228e63cba697076e49d2849d806977868fd /Library
parent35093b7a372e492fa28f0f23dff159c018b26a6f (diff)
downloadbrew-7dcb54a96314622c8319b8aa2a6669b778f87493.tar.bz2
Set bottle name so `brew fetch --retry` works
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/software_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index 4706e5ab4..43969b2fa 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -100,12 +100,13 @@ end
class Bottle
extend Forwardable
- attr_reader :resource, :prefix, :cellar, :revision
+ attr_reader :name, :resource, :prefix, :cellar, :revision
def_delegators :resource, :url, :fetch, :verify_download_integrity
def_delegators :resource, :downloader, :cached_download, :clear_cache
def initialize(f, spec)
+ @name = f.name
@resource = Resource.new
@resource.owner = f
@resource.url = bottle_url(