diff options
| author | Jack Nagel | 2015-01-08 14:18:41 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-01-08 14:18:41 -0500 |
| commit | 7c31df0797eeaf04635fac2a27ae519e442f502f (patch) | |
| tree | 9966950d127bd40ae897f97e6a46347c10d8727d | |
| parent | f833b7373b2c0cba874445dc86de4630d1c01275 (diff) | |
| download | homebrew-7c31df0797eeaf04635fac2a27ae519e442f502f.tar.bz2 | |
Remove the direct url writer from Resource
| -rw-r--r-- | Library/Homebrew/patch.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/resource.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 72deabefd..4b41d972d 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -161,7 +161,7 @@ end class LegacyPatch < ExternalPatch def initialize(strip, url) super(strip) - resource.url = url + resource.url(url) resource.download_strategy = CurlDownloadStrategy end diff --git a/Library/Homebrew/resource.rb b/Library/Homebrew/resource.rb index 550658aa9..dd7245b4c 100644 --- a/Library/Homebrew/resource.rb +++ b/Library/Homebrew/resource.rb @@ -9,7 +9,7 @@ class Resource include FileUtils attr_reader :checksum, :mirrors, :specs, :using - attr_writer :url, :checksum, :version + attr_writer :checksum, :version attr_accessor :download_strategy # Formula name must be set after the DSL, as we have no access to the diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 1102a4fc3..a1fba5661 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -224,7 +224,7 @@ class Bottle checksum, tag = spec.checksum_for(bottle_tag) filename = Filename.create(formula, tag, spec.revision) - @resource.url = build_url(spec.root_url, filename) + @resource.url(build_url(spec.root_url, filename)) @resource.download_strategy = CurlBottleDownloadStrategy @resource.version = formula.pkg_version @resource.checksum = checksum |
