diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index 7e6f389495..e7a7a181f6 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -45,6 +45,7 @@ MACOS_VERSION = /(10\.\d+)(\.\d+)?/.match(MACOS_FULL_VERSION).captures.first.to_ HOMEBREW_USER_AGENT = "Homebrew #{HOMEBREW_VERSION} (Ruby #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}; Mac OS X #{MACOS_FULL_VERSION})" +HOMEBREW_CURL_ARGS = '-f#LA' RECOMMENDED_LLVM = 2326 RECOMMENDED_GCC_40 = (MACOS_VERSION >= 10.6) ? 5494 : 5493 diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb index 0933185bbb..c0556651c2 100644 --- a/Library/Homebrew/test/testing_env.rb +++ b/Library/Homebrew/test/testing_env.rb @@ -15,9 +15,11 @@ require 'exceptions' HOMEBREW_PREFIX=Pathname.new '/private/tmp/testbrew/prefix' HOMEBREW_REPOSITORY=HOMEBREW_PREFIX HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+"cache" +HOMEBREW_CACHE_FORMULA=HOMEBREW_PREFIX.parent+"formula_cache" HOMEBREW_CELLAR=HOMEBREW_PREFIX.parent+"cellar" HOMEBREW_USER_AGENT="Homebrew" HOMEBREW_WWW='http://example.com' +HOMEBREW_CURL_ARGS = '-fsLA' MACOS_VERSION=10.6 (HOMEBREW_PREFIX+'Library/Formula').mkpath diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index a26a6ab936..3160ffe148 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -104,7 +104,7 @@ def quiet_system cmd, *args end def curl *args - safe_system '/usr/bin/curl', '-f#LA', HOMEBREW_USER_AGENT, *args unless args.empty? + safe_system '/usr/bin/curl', HOMEBREW_CURL_ARGS, HOMEBREW_USER_AGENT, *args unless args.empty? end def puts_columns items, star_items=[]