aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-18 20:32:50 -0500
committerJack Nagel2014-09-18 21:36:46 -0500
commit6b27f512d062bc9b748e861ed37e32d64aba8412 (patch)
treea50de15276b255fc0e6c169eb6d3907ff7c4ad3a /Library
parent8b1bd09d9b2a0a98ff5401edee8c43aa4e49449a (diff)
downloadhomebrew-6b27f512d062bc9b748e861ed37e32d64aba8412.tar.bz2
Make install name debug output more readable
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_fix_install_names.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb
index a315b4214..927ed7d45 100644
--- a/Library/Homebrew/keg_fix_install_names.rb
+++ b/Library/Homebrew/keg_fix_install_names.rb
@@ -58,12 +58,12 @@ class Keg
end
def change_dylib_id(id, file)
- puts "Changing dylib ID in #{file} to #{id}" if ARGV.debug?
+ puts "Changing dylib ID of #{file}\n from #{file.dylib_id}\n to #{id}" if ARGV.debug?
install_name_tool("-id", id, file)
end
def change_install_name(old, new, file)
- puts "Changing install name in #{file} from #{old} to #{new}" if ARGV.debug?
+ puts "Changing install name in #{file}\n from #{old}\n to #{new}" if ARGV.debug?
install_name_tool("-change", old, new, file)
end
@@ -100,7 +100,8 @@ class Keg
end
def install_name_tool(*args)
- safe_system(MacOS.locate("install_name_tool"), *args)
+ tool = MacOS.locate("install_name_tool")
+ system(tool, *args) or raise ErrorDuringExecution.new(tool, args)
end
# If file is a dylib or bundle itself, look for the dylib named by