diff options
| author | Andre Arko | 2009-09-17 14:34:52 -0700 |
|---|---|---|
| committer | Max Howell | 2009-09-29 23:34:16 +0100 |
| commit | 1f9104bb8bf86aff593857c45166eb3607fcee02 (patch) | |
| tree | c1244569edd3fcd513b5ce1185f89f6642cb730f /Library | |
| parent | d8ad9ac793ad7f7abfe5687b77368eef706a8c16 (diff) | |
| download | homebrew-1f9104bb8bf86aff593857c45166eb3607fcee02.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/global.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/update.rb | 2 |
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) |
