aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-07-29 15:54:56 -0600
committerMike McQuaid2016-07-29 21:21:02 -0600
commitc3739dc441604a7a929da5c9b3f2818981a968b2 (patch)
tree00113dc85012b23f19eebee2db6008bd564d9739 /Library
parentfa6377dc12ba594c261e4818e46338a308cf203f (diff)
downloadbrew-c3739dc441604a7a929da5c9b3f2818981a968b2.tar.bz2
utils/bottles: don't rely on tar wildcards, location.
This doesn’t work quite as-is on Linux’s GNU tar.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils/bottles.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/bottles.rb b/Library/Homebrew/utils/bottles.rb
index 7b40a2e41..d1798ecc9 100644
--- a/Library/Homebrew/utils/bottles.rb
+++ b/Library/Homebrew/utils/bottles.rb
@@ -29,7 +29,9 @@ module Utils
end
def receipt_path(bottle_file)
- Utils.popen_read("/usr/bin/tar", "-tzf", bottle_file, "*/*/INSTALL_RECEIPT.json").chomp
+ Utils.popen_read("tar", "-tzf", bottle_file).lines.map(&:chomp).find do |line|
+ line =~ %r{.+/.+/INSTALL_RECEIPT.json}
+ end
end
def resolve_formula_names(bottle_file)