software_spec: set a name for bottles.
Avoids errors on `brew fetch --retry` with bottles.
This commit is contained in:
parent
a6b46347a1
commit
5d11b5e7a5
@ -102,11 +102,11 @@ class Bottle
|
|||||||
|
|
||||||
attr_reader :resource, :prefix, :cellar, :revision
|
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_delegators :resource, :downloader, :cached_download, :clear_cache
|
||||||
|
|
||||||
def initialize(f, spec)
|
def initialize(f, spec)
|
||||||
@resource = Resource.new
|
@resource = Resource.new f.name
|
||||||
@resource.owner = f
|
@resource.owner = f
|
||||||
@resource.url = bottle_url(
|
@resource.url = bottle_url(
|
||||||
spec.root_url,
|
spec.root_url,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user