Use ~/Library/Caches not ~/Library/Application Support for http-cache

This commit is contained in:
Max Howell 2009-06-28 17:35:04 +01:00
parent 138801cdec
commit dba2a53216

View File

@ -43,10 +43,10 @@ def ohai title
puts "\033[0;34m==>\033[0;0;1m #{title[0,n]}\033[0;0m" puts "\033[0;34m==>\033[0;0;1m #{title[0,n]}\033[0;0m"
end end
def appsupport def cache
appsupport = File.expand_path "~/Library/Application Support/Homebrew" cache=File.expand_path "~/Library/Caches/Homebrew"
FileUtils.mkpath appsupport FileUtils.mkpath cache
return appsupport return cache
end end
class BuildError <RuntimeError class BuildError <RuntimeError
@ -201,7 +201,7 @@ public
# yields self with current working directory set to the uncompressed tarball # yields self with current working directory set to the uncompressed tarball
def brew def brew
ohai "Downloading #{@url}" ohai "Downloading #{@url}"
Dir.chdir appsupport do Dir.chdir cache do
tmp=tgz=nil tmp=tgz=nil
begin begin
tgz=Pathname.new(fetch()).realpath tgz=Pathname.new(fetch()).realpath