Fix references to formula.json
and cask.json
These would be stranded after `formula.jws.json`.
This commit is contained in:
parent
a72573a6bc
commit
c209c0403d
@ -810,6 +810,9 @@ EOS
|
||||
else
|
||||
echo "Failed to download ${json_url}!" >>"${update_failed_file}"
|
||||
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
|
||||
fi
|
||||
|
||||
|
@ -147,7 +147,7 @@ module SystemConfig
|
||||
f.puts "Core tap branch: #{core_tap_branch}"
|
||||
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")}"
|
||||
elsif !CoreTap.instance.installed?
|
||||
f.puts "Core tap: N/A"
|
||||
|
@ -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.
|
||||
|
||||
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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user