diff options
| author | Max Howell | 2009-06-28 17:35:04 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-28 17:35:04 +0100 |
| commit | dba2a53216c515700c42766514d5da639dd928d7 (patch) | |
| tree | 46bb59218cb9d6c1f7a65f88529cb66ec3adf19a /Library | |
| parent | 138801cdecb01b1bb6d540af25293489b39784df (diff) | |
| download | brew-dba2a53216c515700c42766514d5da639dd928d7.tar.bz2 | |
Use ~/Library/Caches not ~/Library/Application Support for http-cache
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brewkit.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 70785fa1a..0b99d9776 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -43,10 +43,10 @@ def ohai title puts "\033[0;34m==>\033[0;0;1m #{title[0,n]}\033[0;0m" end -def appsupport - appsupport = File.expand_path "~/Library/Application Support/Homebrew" - FileUtils.mkpath appsupport - return appsupport +def cache + cache=File.expand_path "~/Library/Caches/Homebrew" + FileUtils.mkpath cache + return cache end class BuildError <RuntimeError @@ -201,7 +201,7 @@ public # yields self with current working directory set to the uncompressed tarball def brew ohai "Downloading #{@url}" - Dir.chdir appsupport do + Dir.chdir cache do tmp=tgz=nil begin tgz=Pathname.new(fetch()).realpath |
