Add HOMEBREW_REPOSITORY prefix for brew up

Signed-off-by: Max Howell <max@methylblue.com>

I removed whitespace changes and changed readlink to realpath as readlink raises if it's not a link.
This commit is contained in:
Andre Arko 2009-09-17 14:34:52 -07:00 committed by Max Howell
parent 195e75c1b2
commit d3954d3d77
2 changed files with 2 additions and 1 deletions

View File

@ -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'

View File

@ -68,7 +68,7 @@ class RefreshBrew
private
def in_prefix
Dir.chdir(HOMEBREW_PREFIX) { yield }
Dir.chdir(HOMEBREW_REPOSITORY) { yield }
end
def execute(cmd)