aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/global.rb1
-rw-r--r--Library/Homebrew/update.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb
index 95e4c9ded..26975934e 100644
--- a/Library/Homebrew/global.rb
+++ b/Library/Homebrew/global.rb
@@ -36,6 +36,7 @@ end
HOMEBREW_PREFIX = (Pathname.getwd+__FILE__).dirname.parent.parent.cleanpath
HOMEBREW_CELLAR = HOMEBREW_PREFIX+'Cellar'
+HOMEBREW_REPOSITORY = HOMEBREW_CELLAR.realpath.parent
HOMEBREW_VERSION = 0.4
HOMEBREW_WWW = 'http://bit.ly/Homebrew'
diff --git a/Library/Homebrew/update.rb b/Library/Homebrew/update.rb
index 0e1bcb91f..09399fbde 100644
--- a/Library/Homebrew/update.rb
+++ b/Library/Homebrew/update.rb
@@ -68,7 +68,7 @@ class RefreshBrew
private
def in_prefix
- Dir.chdir(HOMEBREW_PREFIX) { yield }
+ Dir.chdir(HOMEBREW_REPOSITORY) { yield }
end
def execute(cmd)