diff options
| author | Mike McQuaid | 2016-07-29 15:54:56 -0600 |
|---|---|---|
| committer | Mike McQuaid | 2016-07-29 21:21:02 -0600 |
| commit | c3739dc441604a7a929da5c9b3f2818981a968b2 (patch) | |
| tree | 00113dc85012b23f19eebee2db6008bd564d9739 /Library | |
| parent | fa6377dc12ba594c261e4818e46338a308cf203f (diff) | |
| download | brew-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.rb | 4 |
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) |
