Merge pull request #15774 from MikeMcQuaid/update_verboser
cmd/update: output more API information with `--verbose`.
This commit is contained in:
		
						commit
						f4760edfbf
					
				@ -781,7 +781,6 @@ EOS
 | 
			
		||||
      export HOMEBREW_UPDATE_AFTER"${TAP_VAR}"="${CURRENT_REVISION}"
 | 
			
		||||
    else
 | 
			
		||||
      merge_or_rebase "${DIR}" "${TAP_VAR}" "${UPSTREAM_BRANCH}"
 | 
			
		||||
      [[ -n "${HOMEBREW_VERBOSE}" ]] && echo
 | 
			
		||||
    fi
 | 
			
		||||
  done
 | 
			
		||||
 | 
			
		||||
@ -799,6 +798,11 @@ EOS
 | 
			
		||||
        INITIAL_JSON_BYTESIZE="$(wc -c "${cache_path}")"
 | 
			
		||||
      fi
 | 
			
		||||
 | 
			
		||||
      if [[ -n "${HOMEBREW_VERBOSE}" ]]
 | 
			
		||||
      then
 | 
			
		||||
        echo "Checking if we need to fetch ${filename}..."
 | 
			
		||||
      fi
 | 
			
		||||
 | 
			
		||||
      JSON_URLS=()
 | 
			
		||||
      if [[ -n "${HOMEBREW_API_DOMAIN}" && "${HOMEBREW_API_DOMAIN}" != "${HOMEBREW_API_DEFAULT_DOMAIN}" ]]
 | 
			
		||||
      then
 | 
			
		||||
@ -846,6 +850,11 @@ EOS
 | 
			
		||||
            rm -f "${api_cache}/formula_aliases.txt"
 | 
			
		||||
          fi
 | 
			
		||||
          HOMEBREW_UPDATED="1"
 | 
			
		||||
 | 
			
		||||
          if [[ -n "${HOMEBREW_VERBOSE}" ]]
 | 
			
		||||
          then
 | 
			
		||||
            echo "Updated ${filename}."
 | 
			
		||||
          fi
 | 
			
		||||
        fi
 | 
			
		||||
      else
 | 
			
		||||
        echo "Failed to download ${json_url}!" >>"${update_failed_file}"
 | 
			
		||||
@ -855,6 +864,11 @@ EOS
 | 
			
		||||
 | 
			
		||||
    # Not a typo, these are the files we used to download that no longer need so should cleanup.
 | 
			
		||||
    rm -f "${HOMEBREW_CACHE}/api/formula.json" "${HOMEBREW_CACHE}/api/cask.json"
 | 
			
		||||
  else
 | 
			
		||||
    if [[ -n "${HOMEBREW_VERBOSE}" ]]
 | 
			
		||||
    then
 | 
			
		||||
      echo "HOMEBREW_NO_INSTALL_FROM_API set: skipping API JSON downloads."
 | 
			
		||||
    fi
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  if [[ -f "${update_failed_file}" ]]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user