aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2011-06-21 18:46:28 +0100
committerMike McQuaid2011-06-21 19:04:18 +0100
commit939a530ddc644c3b6a193c7b6af22f5c5f0fd22a (patch)
tree7dda767dbcb65f1a2fb14bd4913900e5aa169ae4 /Library
parent23769d62add490c7c4c0ccead0f5497dc4beb59b (diff)
downloadbrew-939a530ddc644c3b6a193c7b6af22f5c5f0fd22a.tar.bz2
Make bottle path.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb3
-rw-r--r--Library/Homebrew/global.rb3
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index ea25eafbb..883ea6878 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -164,7 +164,8 @@ end
class CurlBottleDownloadStrategy <CurlDownloadStrategy
def initialize url, name, version, specs
super
- @tarball_path=HOMEBREW_CACHE+'Bottles'+("#{name}-#{version}"+ext)
+ HOMEBREW_CACHE_BOTTLES.mkpath
+ @tarball_path=HOMEBREW_CACHE_BOTTLES+("#{name}-#{version}"+ext)
end
def stage
ohai "Pouring #{File.basename(@tarball_path)}"
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index d7cf71133..d390d7d3c 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -23,6 +23,9 @@ end
# Where brews installed via URL are cached
HOMEBREW_CACHE_FORMULA = HOMEBREW_CACHE+"Formula"
+# Where bottles are cached
+HOMEBREW_CACHE_BOTTLES = HOMEBREW_CACHE+"Bottles"
+
if not defined? HOMEBREW_BREW_FILE
HOMEBREW_BREW_FILE = ENV['HOMEBREW_BREW_FILE'] || `which brew`.chomp
end