diff options
| author | Max Howell | 2011-09-01 12:08:30 +0100 |
|---|---|---|
| committer | Max Howell | 2011-09-01 12:08:30 +0100 |
| commit | 686f727f947a84784861bd3b027f663eb8f63544 (patch) | |
| tree | 1417eec997e6937fe36c96a8c6459d7023e26bc4 /Library | |
| parent | e6e0b32991a0747b0785ddab30db5f291262a2a3 (diff) | |
| download | homebrew-686f727f947a84784861bd3b027f663eb8f63544.tar.bz2 | |
Use fullpaths to file and strip
Fixes #7353.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cleaner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cleaner.rb b/Library/Homebrew/cleaner.rb index 070f35b81..45f3d69b9 100644 --- a/Library/Homebrew/cleaner.rb +++ b/Library/Homebrew/cleaner.rb @@ -30,7 +30,7 @@ class Cleaner puts "strip #{path}" if ARGV.verbose? path.chmod 0644 # so we can strip unless path.stat.nlink > 1 - system "strip", *(args+path) + system "/usr/bin/strip", *(args+path) else path = path.to_s.gsub ' ', '\\ ' @@ -48,7 +48,7 @@ class Cleaner def clean_file path perms = 0444 - case `file -h '#{path}'` + case `/usr/bin/file -h '#{path}'` when /Mach-O dynamically linked shared library/ # Stripping libraries is causing no end of trouble. Lets just give up, # and try to do it manually in instances where it makes sense. |
