From 2ecd73bca4cee61096e076e7c15fd6e8ae928d6d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 20 Sep 2016 09:07:02 +0100 Subject: update-report: migrate on newer auto-update. If we have a `brew.sh` which has set `HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION` then let's allow an auto-update migration. That's because it contains the fix below it _before_ the update happened which means the auto-update won't fail in the same way as if updating from an old version. --- Library/Homebrew/brew.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library/Homebrew/brew.sh') diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index daf53823f..fc2e6993c 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -267,6 +267,9 @@ update-preinstall() { [[ -z "$HOMEBREW_NO_AUTO_UPDATE" ]] || return [[ -z "$HOMEBREW_UPDATE_PREINSTALL" ]] || return + # Allow auto-update migration now we have a fix in place (below in this function). + export HOMEBREW_ENABLE_AUTO_UPDATE_MIGRATION="1" + if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" || "$HOMEBREW_COMMAND" = "tap" ]] then brew update --preinstall -- cgit v1.2.3