utils/bottles: don't rely on tar wildcards, location.
This doesn’t work quite as-is on Linux’s GNU tar.
This commit is contained in:
parent
fa6377dc12
commit
c3739dc441
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user