aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-05-22 23:58:05 -0500
committerJack Nagel2012-05-30 22:32:48 -0500
commitb6e0dfed2385ee61f6c55907b407cbaefb411ea6 (patch)
treef3944c8b64d5dae7e877f17c7cc4a5b300c9b73b /Library
parentbeb85c0d90ac7708f40fd5ad68f1cb0d851996db (diff)
downloadbrew-b6e0dfed2385ee61f6c55907b407cbaefb411ea6.tar.bz2
Recurse into subdirectories when fixing install names
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_fix_install_names.rb10
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