diff options
| author | Adam Vandenberg | 2012-03-10 10:08:16 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-10 10:08:16 -0800 |
| commit | c947dbc58028f6c8efe40e9b3206c04e62fe73e5 (patch) | |
| tree | 6ddb03897a0127018cbb78de064b2d3854b0c73d /Library/Homebrew/cmd | |
| parent | 715f808421c8df4e65d7f8bc95ea30eb496d4955 (diff) | |
| download | brew-c947dbc58028f6c8efe40e9b3206c04e62fe73e5.tar.bz2 | |
Use HOMEBREW_REPOSITORY for freshness check
Homebrew itself is found under HOMEBREW_REPOSITORY,
which *may* be the same HOMEBREW_PREFIX, but does not have
to be if you link brew into /usr/local/bin from another location.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 0d3ef3e87..9813e30db 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -801,11 +801,11 @@ def check_for_bad_python_symlink end def check_for_outdated_homebrew - HOMEBREW_PREFIX.cd do + HOMEBREW_REPOSITORY.cd do timestamp = if File.directory? ".git" `git log -1 --format="%ct" HEAD`.to_i else - (HOMEBREW_PREFIX/"Library").mtime.to_i + (HOMEBREW_REPOSITORY/"Library").mtime.to_i end if Time.now.to_i - timestamp > 60 * 60 * 24 then <<-EOS.undent |
