diff options
| author | Adam Vandenberg | 2010-08-16 09:32:16 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-16 09:32:16 -0700 |
| commit | 80bec9bcc1fc48cec8ad939fb30cec11fb1097d9 (patch) | |
| tree | 92ff5e428fe8e9cc4b9521581dca1c36ecd3a5e9 /Library | |
| parent | 6355e37162437b08712085f6ca94d7b401f04c63 (diff) | |
| download | brew-80bec9bcc1fc48cec8ad939fb30cec11fb1097d9.tar.bz2 | |
brew doctor - tweak multiple volume check
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew_doctor.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index fae8939b0..689e19ba4 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -416,7 +416,9 @@ def check_for_multiple_volumes # Find the volumes for the TMP folder & HOMEBREW_CELLAR real_cellar = HOMEBREW_CELLAR.realpath - tmp=Pathname.new `/usr/bin/mktemp -d /tmp/homebrew-brew-doctor-XXXX`.strip + + tmp_prefix = ENV['HOMEBREW_TEMP'] || '/tmp' + tmp=Pathname.new `/usr/bin/mktemp -d #{tmp_prefix}/homebrew-brew-doctor-XXXX`.strip real_temp = tmp.realpath.parent where_cellar = volumes.which real_cellar @@ -424,10 +426,12 @@ def check_for_multiple_volumes unless where_cellar == where_temp puts <<-EOS.undent - Your Cellar and /tmp folders are on different volumes. + Your Cellar & TEMP folders are on different volumes. + + OS X won't move relative symlinks across volumes unless the target file + already exists. - Putting your Cellar and TMP folders on different volumes causes problems - for brews that install symlinks, such as Git. + Brews known to be affected by this are Git and Narwhal. You should set the "HOMEBREW_TEMP" environmental variable to a suitable folder on the same volume as your Cellar. |
