diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml
index d63d82e1e0..5eb3d467b7 100644
--- a/Library/Homebrew/.rubocop.yml
+++ b/Library/Homebrew/.rubocop.yml
@@ -41,7 +41,7 @@ Metrics/PerceivedComplexity:
Metrics/MethodLength:
Max: 232
Metrics/ModuleLength:
- Max: 480
+ Max: 481
Exclude:
# TODO: extract more of the bottling logic
- "dev-cmd/bottle.rb"
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index 601ced299c..bed5d5065c 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -270,6 +270,10 @@ auto-update() {
then
# 24 hours
HOMEBREW_AUTO_UPDATE_SECS="86400"
+ elif [[ -n "${HOMEBREW_DEV_CMD_RUN}" ]]
+ then
+ # 1 hour
+ HOMEBREW_AUTO_UPDATE_SECS="3600"
else
# 5 minutes
HOMEBREW_AUTO_UPDATE_SECS="300"
diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb
index 0e4b826dca..1d2431cb0c 100644
--- a/Library/Homebrew/env_config.rb
+++ b/Library/Homebrew/env_config.rb
@@ -47,7 +47,8 @@ module Homebrew
description: "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`.",
- default_text: "86400 (24 hours) or 300 (5 minutes) if `HOMEBREW_NO_INSTALL_FROM_API` is set.",
+ default_text: "86400 (24 hours), 3600 (1 hour) if a developer command has been run " \
+ "or 300 (5 minutes) if `HOMEBREW_NO_INSTALL_FROM_API` is set.",
},
HOMEBREW_AUTOREMOVE: {
description: "If set, calls to `brew cleanup` and `brew uninstall` will automatically " \
diff --git a/docs/Manpage.md b/docs/Manpage.md
index 924eb07bda..5b77e94bda 100644
--- a/docs/Manpage.md
+++ b/docs/Manpage.md
@@ -2003,7 +2003,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
- `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`.
- *Default:* 86400 (24 hours) or 300 (5 minutes) if `HOMEBREW_NO_INSTALL_FROM_API` is set.
+ *Default:* 86400 (24 hours), 3600 (1 hour) if a developer command has been run or 300 (5 minutes) if `HOMEBREW_NO_INSTALL_FROM_API` is set.
- `HOMEBREW_AUTOREMOVE`
If set, calls to `brew cleanup` and `brew uninstall` will automatically remove unused formula dependents and if `HOMEBREW_NO_INSTALL_CLEANUP` is not set, `brew cleanup` will start running `brew autoremove` periodically.
diff --git a/manpages/brew.1 b/manpages/brew.1
index aecfe4953e..5a691cedbe 100644
--- a/manpages/brew.1
+++ b/manpages/brew.1
@@ -2864,7 +2864,7 @@ Check Homebrew\'s API for new formulae or cask data every \fBHOMEBREW_API_AUTO_U
Run \fBbrew update\fR once every \fBHOMEBREW_AUTO_UPDATE_SECS\fR seconds before some commands, e\.g\. \fBbrew install\fR, \fBbrew upgrade\fR and \fBbrew tap\fR\. Alternatively, disable auto\-update entirely with \fBHOMEBREW_NO_AUTO_UPDATE\fR\.
.
.IP
-\fIDefault:\fR 86400 (24 hours) or 300 (5 minutes) if \fBHOMEBREW_NO_INSTALL_FROM_API\fR is set\.
+\fIDefault:\fR 86400 (24 hours), 3600 (1 hour) if a developer command has been run or 300 (5 minutes) if \fBHOMEBREW_NO_INSTALL_FROM_API\fR is set\.
.
.TP
\fBHOMEBREW_AUTOREMOVE\fR