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
commit28e86f004a331388efc5f691d6be19235b5bed72 (patch)
treeafdd2aedcd663894db153b0736a63673ead305b9 /Library
parentbf29ec40c20b1ef0d84781efc15d1b5641abe02c (diff)
downloadhomebrew-28e86f004a331388efc5f691d6be19235b5bed72.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