From a5c4ce59ff69b5a7c54448d1b3a2e401b700eb48 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 15 Feb 2023 17:17:51 +0000 Subject: [PATCH] env_config: reduce api_auto_update_secs. We're reducing this in formulae.brew.sh too. --- Library/Homebrew/env_config.rb | 2 +- docs/Manpage.md | 4 ++-- manpages/brew.1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb index 7b33ed4ac3..f5694582a3 100644 --- a/Library/Homebrew/env_config.rb +++ b/Library/Homebrew/env_config.rb @@ -41,7 +41,7 @@ module Homebrew description: "Check Homebrew's API for new formulae or cask data every " \ "`HOMEBREW_API_AUTO_UPDATE_SECS` seconds. Alternatively, disable API auto-update " \ "checks entirely with HOMEBREW_NO_AUTO_UPDATE.", - default: 1800, + default: 450, }, HOMEBREW_AUTO_UPDATE_SECS: { description: "Run `brew update` once every `HOMEBREW_AUTO_UPDATE_SECS` seconds before some commands, " \ diff --git a/docs/Manpage.md b/docs/Manpage.md index 3111a5aabb..979b7b6dbe 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -10,7 +10,7 @@ brew(1) -- The Missing Package Manager for macOS (or Linux) Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn't include with macOS. It can also install software not packaged for your -Linux distribution without requiring `sudo`. +Linux distribution to your home directory without requiring `sudo`. ## TERMINOLOGY @@ -1998,7 +1998,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just - `HOMEBREW_API_AUTO_UPDATE_SECS`
Check Homebrew's API for new formulae or cask data every `HOMEBREW_API_AUTO_UPDATE_SECS` seconds. Alternatively, disable API auto-update checks entirely with HOMEBREW_NO_AUTO_UPDATE. - *Default:* `1800`. + *Default:* `450`. - `HOMEBREW_AUTO_UPDATE_SECS`
Run `brew update` once every `HOMEBREW_AUTO_UPDATE_SECS` seconds before some commands, e.g. `brew install`, `brew upgrade` and `brew tap`. Alternatively, disable auto-update entirely with `HOMEBREW_NO_AUTO_UPDATE`. diff --git a/manpages/brew.1 b/manpages/brew.1 index 612a6f47c7..95218e03ef 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -2855,7 +2855,7 @@ Prefix all download URLs, including those for bottles, with this value\. For exa Check Homebrew\'s API for new formulae or cask data every \fBHOMEBREW_API_AUTO_UPDATE_SECS\fR seconds\. Alternatively, disable API auto\-update checks entirely with HOMEBREW_NO_AUTO_UPDATE\. . .IP -\fIDefault:\fR \fB1800\fR\. +\fIDefault:\fR \fB450\fR\. . .TP \fBHOMEBREW_AUTO_UPDATE_SECS\fR