diff options
| author | Jack Nagel | 2012-05-22 23:58:05 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-05-30 22:32:48 -0500 |
| commit | 9f68f25da43f181a1cc4096b4e676eab71220925 (patch) | |
| tree | fa2611110e62d681e646d7abcca764170e7fdd9f /Library | |
| parent | 1cdf56ad803ef9e1a1d7d385a96ba3a28f2272e6 (diff) | |
| download | homebrew-9f68f25da43f181a1cc4096b4e676eab71220925.tar.bz2 | |
Recurse into subdirectories when fixing install names
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg_fix_install_names.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index e0b9259c4..16abf2880 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -45,10 +45,14 @@ class Keg end def dylibs + require 'find' + dylibs = [] if (lib = join 'lib').directory? - lib.children.select{ |pn| pn.extname == '.dylib' and not pn.symlink? } - else - [] + lib.find do |pn| + next if pn.symlink? or pn.directory? + dylibs << pn if pn.extname == '.dylib' + end end + dylibs end end |
