diff options
Diffstat (limited to 'Library/Homebrew/brewkit.rb')
| -rw-r--r-- | Library/Homebrew/brewkit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 92cd3b65b..c8702c4b1 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -113,6 +113,14 @@ end ENV.extend HomebrewEnvExtension +# remove MacPorts and Fink from the PATH, this prevents issues like: +# http://github.com/mxcl/homebrew/issues/#issue/13 +paths=ENV['PATH'].split(':').reject do |p| + p.squeeze! '/' + p=~%r[^/opt/local] or p=~%r[^/sw] +end +ENV['PATH']=paths*':' + def inreplace(path, before, after) before=Regexp.escape before.to_s |
