aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2009-08-03 09:59:14 -0700
committerMax Howell2009-08-10 16:15:24 +0100
commitcae0e78e6065b95ce2fc47d0d2cdd500945ffe6d (patch)
treef5ddbd5eb7094dbfd517704619af3c18a5c1948a /Library/Homebrew/formula.rb
parentfea89daae6e7b2d6bcae4b89becc819a1df4aac9 (diff)
downloadbrew-cae0e78e6065b95ce2fc47d0d2cdd500945ffe6d.tar.bz2
Pull USERAGENT used by curl into constant
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 1b20c9640..4f02e2077 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -174,10 +174,8 @@ private
tgz=File.expand_path File.basename(@url)
end
- agent="Homebrew #{HOMEBREW_VERSION} (Ruby #{VERSION}; Mac OS X 10.5 Leopard)"
-
unless File.exists? tgz
- `curl -#LA "#{agent}" #{oarg} "#{@url}"`
+ `curl -#LA "#{HOMEBREW_USER_AGENT}" #{oarg} "#{@url}"`
raise "Download failed" unless $? == 0
else
puts "File already downloaded and cached"