From 5d11b5e7a5b05728f05b143c6b07ab8b9bca8989 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 13 Mar 2014 11:22:33 +0000 Subject: [PATCH] software_spec: set a name for bottles. Avoids errors on `brew fetch --retry` with bottles. --- Library/Homebrew/software_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 4706e5ab49..fc974e5973 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -102,11 +102,11 @@ class Bottle attr_reader :resource, :prefix, :cellar, :revision - def_delegators :resource, :url, :fetch, :verify_download_integrity + def_delegators :resource, :name, :url, :fetch, :verify_download_integrity def_delegators :resource, :downloader, :cached_download, :clear_cache def initialize(f, spec) - @resource = Resource.new + @resource = Resource.new f.name @resource.owner = f @resource.url = bottle_url( spec.root_url,