aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-03-13 11:22:33 +0000
committerMike McQuaid2014-03-13 11:22:33 +0000
commit5d11b5e7a5b05728f05b143c6b07ab8b9bca8989 (patch)
tree13336747155513149e401a46b3763940f791d613 /Library
parenta6b46347a1615b3d16fafa4994e0dc29fa836006 (diff)
downloadbrew-5d11b5e7a5b05728f05b143c6b07ab8b9bca8989.tar.bz2
software_spec: set a name for bottles.
Avoids errors on `brew fetch --retry` with bottles.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/software_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index 4706e5ab4..fc974e597 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,