aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-05-23 00:57:18 -0500
committerJack Nagel2012-05-30 22:32:48 -0500
commit586271e44299a3cc9bd658df433ddbddc72ed7b2 (patch)
tree15c07e0b0949956d960bd4247c8d9920c9347ac3 /Library
parent96fb03750ed6086cb93e053663f47bdea7ac2965 (diff)
downloadhomebrew-586271e44299a3cc9bd658df433ddbddc72ed7b2.tar.bz2
fix_install_names: use Mach-O methods to find dylibs
Some libraries do not have the .dylib extension (e.g. Qt framework libs), but need to have their install names rewritten to prevent other packages from breaking due to upgrades. Use the new Pathname#dylib? instead.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_fix_install_names.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb
index 16abf2880..9ffd349fc 100644
--- a/Library/Homebrew/keg_fix_install_names.rb
+++ b/Library/Homebrew/keg_fix_install_names.rb
@@ -50,7 +50,7 @@ class Keg
if (lib = join 'lib').directory?
lib.find do |pn|
next if pn.symlink? or pn.directory?
- dylibs << pn if pn.extname == '.dylib'
+ dylibs << pn if pn.dylib?
end
end
dylibs