diff options
| author | Mike McQuaid | 2011-06-21 18:46:28 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2011-06-21 19:04:18 +0100 |
| commit | 371818ffa92e0fd2b4567d124862fb3879d4370d (patch) | |
| tree | 09123ad19efd813889ebfe6d338550697b6c6751 /Library | |
| parent | 9c69c1bae34c1791dc3c2e583fa04a687f6ac775 (diff) | |
| download | homebrew-371818ffa92e0fd2b4567d124862fb3879d4370d.tar.bz2 | |
Make bottle path.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/global.rb | 3 |
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 |
