aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-18 15:47:26 -0500
committerJack Nagel2014-03-18 21:28:33 -0500
commit184e40b3004a10884682d75042989c3f6bfc7eab (patch)
tree3fd35117841c1b2cae2e1858236971277c9e56d7 /Library/Homebrew/software_spec.rb
parentd55345a98bd7cd44f818726d268f5bf54d4e0b4a (diff)
downloadhomebrew-184e40b3004a10884682d75042989c3f6bfc7eab.tar.bz2
Set bottle download strategy directly
We know what strategy we want, so going through DownloadStrategyDetector is wasted work. Now we can remove those patterns from the detector and have two fewer branches each time through.
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
-rw-r--r--Library/Homebrew/software_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index 1cdfa2e0d..e835bf56d 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -131,6 +131,7 @@ class Bottle
:revision => spec.revision,
:tag => spec.current_tag
)
+ @resource.download_strategy = CurlBottleDownloadStrategy
@resource.version = f.pkg_version
@resource.checksum = spec.checksum
@prefix = spec.prefix