Merge pull request #14646 from MikeMcQuaid/auto_update_secs
Further adjust `HOMEBREW_AUTO_UPDATE_SECS`
This commit is contained in:
		
						commit
						381238b545
					
				@ -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"
 | 
			
		||||
 | 
			
		||||
@ -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"
 | 
			
		||||
 | 
			
		||||
@ -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 " \
 | 
			
		||||
 | 
			
		||||
@ -2003,7 +2003,7 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
 | 
			
		||||
- `HOMEBREW_AUTO_UPDATE_SECS`
 | 
			
		||||
  <br>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`
 | 
			
		||||
  <br>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.
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user