Fix regression with bottle URLs in brew info JSON output

This commit is contained in:
Chris Ayoub 2021-04-12 21:41:42 -04:00
parent d81a047544
commit 7c16da70ac

View File

@ -1905,7 +1905,8 @@ class Formula
os_cellar = os_cellar.is_a?(Symbol) ? os_cellar.inspect : os_cellar
checksum = collector_os[:checksum].hexdigest
path, = bottle_spec.path_resolved_basename(name, checksum, nil)
filename = Bottle::Filename.create(self, os, bottle_spec.rebuild)
path, = bottle_spec.path_resolved_basename(name, checksum, filename)
url = "#{bottle_spec.root_url}/#{path}"
hash["files"][os] = {