diff options
| author | Jack Nagel | 2015-02-07 13:20:10 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2015-02-07 13:54:33 -0500 | 
| commit | 551ea405f53c16cad6762238176e87ed37e7d58b (patch) | |
| tree | 7373822a5c6d556df82c91ec1ccfd5b55874dcae /Library/ENV | |
| parent | a5ae0cfb6cb8817696d551e85ce4862660698bf8 (diff) | |
| download | homebrew-551ea405f53c16cad6762238176e87ed37e7d58b.tar.bz2 | |
Don't prune cellar paths when cellar is in /opt
Fixes #35382.
Diffstat (limited to 'Library/ENV')
| -rwxr-xr-x | Library/ENV/4.3/cc | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 728559330..4ab9dc671 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -26,13 +26,14 @@ end  LOGGER = Logger.new  class Cmd -  attr_reader :brewfix, :brewtmp, :sysroot +  attr_reader :prefix, :cellar, :tmpdir, :sysroot    def initialize path, args      @arg0 = File.basename(path).freeze      @args = args.freeze -    @brewfix = ENV['HOMEBREW_PREFIX'] -    @brewtmp = ENV['HOMEBREW_TEMP'] +    @prefix = ENV['HOMEBREW_PREFIX'] +    @cellar = ENV['HOMEBREW_CELLAR'] +    @tmpdir = ENV['HOMEBREW_TEMP']      @sysroot = ENV['HOMEBREW_SDKROOT']    end @@ -199,7 +200,7 @@ class Cmd    def keep? path      case path -    when %r{^#{Regexp.escape(brewfix)}}o, %r{^#{Regexp.escape(brewtmp)}}o +    when %r{^#{Regexp.escape(prefix)}}o, %r{^#{Regexp.escape(cellar)}}o, %r{^#{Regexp.escape(tmpdir)}}o        # maybe homebrew is installed to /sw or /opt/brew        true      when %r{^/opt}, %r{^/sw}, %r{/usr/X11} | 
