bump-formula-pr: move auto-update to brew.sh

It’s always run anyway but this at least means Homebrew/brew and tap code is all up to date before we start querying any objects.

Fixes #5876.
This commit is contained in:
Mike McQuaid 2019-03-20 11:06:45 +00:00
parent 15495f0bde
commit fbaa0c35a6
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 1 additions and 6 deletions

View File

@ -420,6 +420,7 @@ update-preinstall() {
[[ -z "$HOMEBREW_UPDATE_PREINSTALL" ]] || return
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" ||
"$HOMEBREW_COMMAND" = "bump-formula-pr" ||
"$HOMEBREW_COMMAND" = "tap" && $HOMEBREW_ARG_COUNT -gt 1 ||
"$HOMEBREW_CASK_COMMAND" = "install" || "$HOMEBREW_CASK_COMMAND" = "upgrade" ]]
then

View File

@ -166,12 +166,6 @@ module Homebrew
end
end
if args.dry_run?
ohai "brew update"
else
safe_system "brew", "update"
end
old_formula_version = formula_version(formula, requested_spec)
replacement_pairs = []