Fix references to formula.json and cask.json

These would be stranded after `formula.jws.json`.
This commit is contained in:
Mike McQuaid 2023-02-24 16:46:15 +00:00
parent a72573a6bc
commit c209c0403d
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
3 changed files with 5 additions and 2 deletions

View File

@ -810,6 +810,9 @@ EOS
else else
echo "Failed to download ${json_url}!" >>"${update_failed_file}" echo "Failed to download ${json_url}!" >>"${update_failed_file}"
fi fi
# Not a typo, this is the file we used to download that we should cleanup.
rm -f "${HOMEBREW_CACHE}/api/${formula_or_cask}.json"
done done
fi fi

View File

@ -147,7 +147,7 @@ module SystemConfig
f.puts "Core tap branch: #{core_tap_branch}" f.puts "Core tap branch: #{core_tap_branch}"
end end
if (formula_json = Homebrew::API::HOMEBREW_CACHE_API/"formula.json") && formula_json.exist? if (formula_json = Homebrew::API::HOMEBREW_CACHE_API/"formula.jws.json") && formula_json.exist?
f.puts "Core tap JSON: #{formula_json.mtime.utc.strftime("%d %b %H:%M UTC")}" f.puts "Core tap JSON: #{formula_json.mtime.utc.strftime("%d %b %H:%M UTC")}"
elsif !CoreTap.instance.installed? elsif !CoreTap.instance.installed?
f.puts "Core tap: N/A" f.puts "Core tap: N/A"

View File

@ -23,7 +23,7 @@ A *formula* is a package definition written in Ruby. It can be created with `bre
Homebrew uses Git for storing formulae and contributing to the project. Homebrew uses Git for storing formulae and contributing to the project.
As-of [Homebrew 4.0.0](https://brew.sh/2023/02/16/homebrew-4.0.0/), formulae are downloaded from `https://formulae.brew.sh/api/formula.json`, which is automatically regenerated by a scheduled formulae.brew.sh job from the `master` branch of the homebrew-core repository. As-of [Homebrew 4.0.0](https://brew.sh/2023/02/16/homebrew-4.0.0/), formulae are downloaded from JSON in <https://formulae.brew.sh> which is automatically regenerated by a scheduled formulae.brew.sh job from the `master` branch of the homebrew-core repository.
Homebrew installs formulae to the Cellar at `$(brew --cellar)` and then symlinks some of the installation into the prefix at `$(brew --prefix)` (e.g. `/opt/homebrew`) so that other programs can see what's going on. We suggest running `brew ls` on a few of the kegs in your Cellar to see how it is all arranged. Homebrew installs formulae to the Cellar at `$(brew --cellar)` and then symlinks some of the installation into the prefix at `$(brew --prefix)` (e.g. `/opt/homebrew`) so that other programs can see what's going on. We suggest running `brew ls` on a few of the kegs in your Cellar to see how it is all arranged.