aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-02-19 16:12:26 -0600
committerJack Nagel2012-02-19 16:53:37 -0600
commita23357372e6498a3a6d74382237ca1b3495c3cce (patch)
tree6dd2aadadbe976e175b18bffff38e5f50df9d060 /Library
parentbe250b4d05a59d0b4063fa6ee0b405829cbd59d9 (diff)
downloadbrew-a23357372e6498a3a6d74382237ca1b3495c3cce.tar.bz2
cleaner: remove lib/charset.alias files
This file is installed by a number of packages, but it really shouldn't be. It is meant to be updated by packages that use it, but this is broken (1) by software that doesn't do this correctly and (2) by the symlink being overwritten by Homebrew's linking code. It's presence can cause issues with tools that use libiconv/gettext. Instead let's follow MacPorts' example and just remove it during the clean stage. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cleaner.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb
index 14a69c3ae..ea5ece779 100644
--- a/Library/Homebrew/cleaner.rb
+++ b/Library/Homebrew/cleaner.rb
@@ -78,6 +78,8 @@ class Cleaner
elsif path.extname == '.la'
# *.la files are stupid
path.unlink unless @f.skip_clean? path
+ elsif path == @f.lib+'charset.alias'
+ path.unlink unless @f.skip_clean? path
elsif not path.symlink?
clean_file path
end