diff options
| -rw-r--r-- | Library/Homebrew/bottles.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index e49872f75..5a9b0aa22 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -38,8 +38,12 @@ def bottle_tag end end +def bottle_receipt_path bottle_file + Utils.popen_read("tar", "-tzf", bottle_file, "*/*/INSTALL_RECEIPT.json").chomp +end + def bottle_resolve_formula_names bottle_file - receipt_file_path = Utils.popen_read("tar", "-tzf", bottle_file, "*/*/INSTALL_RECEIPT.json").chomp + receipt_file_path = bottle_receipt_path bottle_file receipt_file = Utils.popen_read("tar", "-xOzf", bottle_file, receipt_file_path) name = receipt_file_path.split("/").first tap = Tab.from_file_content(receipt_file, "#{bottle_file}/#{receipt_file_path}").tap |
