diff options
| author | Adam Vandenberg | 2014-02-23 17:39:01 -0800 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-02-25 20:24:34 -0800 | 
| commit | 3a4a529453c49572be1e0738cb4e9fd8efa75581 (patch) | |
| tree | cc32483e9d9efbde41d3afa891740f13580ca6e9 /Library/Homebrew/cleaner.rb | |
| parent | d848a6c5fdc81f6ebdf5acd0bbb58ee5194bb272 (diff) | |
| download | brew-3a4a529453c49572be1e0738cb4e9fd8efa75581.tar.bz2 | |
remove charset.alias directly
Diffstat (limited to 'Library/Homebrew/cleaner.rb')
| -rw-r--r-- | Library/Homebrew/cleaner.rb | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index d22e70cc1..3fa3bb6f6 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -13,6 +13,12 @@ class Cleaner    # Clean the keg of formula @f    def clean      ObserverPathnameExtension.reset_counts! + +    # Many formulae include 'lib/charset.alias', but it is not strictly needed +    # and will conflict if more than one formula provides it +    alias_path = @f.lib/'charset.alias' +    alias_path.extend(ObserverPathnameExtension).unlink if alias_path.exist? +      [@f.bin, @f.sbin, @f.lib].select{ |d| d.exist? }.each{ |d| clean_dir d }      # Get rid of any info 'dir' files, so they don't conflict at the link stage @@ -30,7 +36,6 @@ class Cleaner    def prune      dirs = []      symlinks = [] -      @f.prefix.find do |path|        if @f.skip_clean? path          Find.prune @@ -80,9 +85,6 @@ class Cleaner          next        elsif path.extname == '.la'          path.unlink -      elsif path == @f.lib+'charset.alias' -        # Many formulae symlink this file, but it is not strictly needed -        path.unlink        else          clean_file_permissions(path)        end  | 
