aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorXu Cheng2015-07-10 19:51:43 +0800
committerXu Cheng2015-07-10 23:28:41 +0800
commit609af678fdb12d270f185e12aa49804e245aff70 (patch)
tree03005750fa3ccc25fd93280e6255b82ae8bd91eb /Library/Homebrew/cmd
parent913659efe4ac5092ce69aebc0e0dc8ae7b16ba96 (diff)
downloadbrew-609af678fdb12d270f185e12aa49804e245aff70.tar.bz2
bottle: improve relocation
* skip document for relocatable check * relocate INSTALL_RECEIPT.json file Fixes Homebrew/homebrew#41545. Closes Homebrew/homebrew#41568. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 89e1f4f03..537e896fd 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -52,6 +52,9 @@ module Homebrew
result = false
keg.each_unique_file_matching(string) do |file|
+ # skip document file.
+ next if Metafiles::EXTENSIONS.include? file.extname
+
# Check dynamic library linkage. Importantly, do not run otool on static
# libraries, which will falsely report "linkage" to themselves.
if file.mach_o_executable? or file.dylib? or file.mach_o_bundle?