mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Use ~/Library/Caches not ~/Library/Application Support for http-cache
This commit is contained in:
parent
138801cdec
commit
dba2a53216
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user