receipt_path: Ensure the bottle contains INSTALL_RECEIPT.json
This commit is contained in:
parent
cb139ca381
commit
1e57445eca
@ -29,9 +29,11 @@ module Utils
|
|||||||
end
|
end
|
||||||
|
|
||||||
def receipt_path(bottle_file)
|
def receipt_path(bottle_file)
|
||||||
Utils.popen_read("tar", "-tzf", bottle_file).lines.map(&:chomp).find do |line|
|
path = Utils.popen_read("tar", "-tzf", bottle_file).lines.map(&:chomp).find do |line|
|
||||||
line =~ %r{.+/.+/INSTALL_RECEIPT.json}
|
line =~ %r{.+/.+/INSTALL_RECEIPT.json}
|
||||||
end
|
end
|
||||||
|
raise "This bottle does not contain the file INSTALL_RECEIPT.json: #{bottle_file}" unless path
|
||||||
|
path
|
||||||
end
|
end
|
||||||
|
|
||||||
def resolve_formula_names(bottle_file)
|
def resolve_formula_names(bottle_file)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user