aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/global.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-08 11:13:50 -0700
committerAdam Vandenberg2011-06-08 11:13:50 -0700
commit45cf37b28af5c394403bacc8f148ca2d4c7daefd (patch)
treee94ad01c6c12772757e7d55bffbf11c2b053bac9 /Library/Homebrew/global.rb
parent40b5912dc077feb6eec774052a46db517f932465 (diff)
downloadhomebrew-45cf37b28af5c394403bacc8f148ca2d4c7daefd.tar.bz2
Better support for brew install <url>
Brews installed via URL are now checked from the cache when other commands are run. This allows for instance: brew install <vim-url> brew info vim
Diffstat (limited to 'Library/Homebrew/global.rb')
-rw-r--r--Library/Homebrew/global.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 54b169d75..4800d5225 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -20,6 +20,9 @@ else
Pathname.new("~/Library/Caches/Homebrew").expand_path
end
+# Where brews installed via URL are cached
+HOMEBREW_CACHE_FORMULA = HOMEBREW_CACHE+"Formula"
+
if not defined? HOMEBREW_BREW_FILE
HOMEBREW_BREW_FILE = ENV['HOMEBREW_BREW_FILE'] || `which brew`.chomp
end