Merge pull request #11125 from chrisayoub/master

Fix regression with bottle URLs in `brew info` JSON output
This commit is contained in:
Mike McQuaid 2021-04-13 12:50:16 +01:00 committed by GitHub
commit 632e4d6579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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] = {