diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index c0229497ef..c3f618a4cd 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -38,7 +38,7 @@ class Keg end end - files = pkgconfig_files | libtool_files | script_files + files = pkgconfig_files | libtool_files | script_files | plist_files files.group_by { |f| f.stat.ino }.each_value do |first, *rest| s = first.open("rb", &:read) @@ -198,4 +198,14 @@ class Keg end if lib.directory? libtool_files end + + def plist_files + plist_files = [] + + self.find do |pn| + next if pn.symlink? or pn.directory? or pn.extname != '.plist' + plist_files << pn + end + plist_files + end end