aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-09-18 20:32:50 -0500
committerJack Nagel2014-09-18 21:36:46 -0500
commit2f74d86fcc541f0e747446179d1df3a54d495ccf (patch)
treea3b5258791751c0e3d12e84f257ca9976970133e
parent56dd575f9603a75015fbdd4a7d7daea0c34a2cb9 (diff)
downloadbrew-2f74d86fcc541f0e747446179d1df3a54d495ccf.tar.bz2
Make install name debug output more readable
-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