From 4029e3d7c1e0c7dde83d1d0c23e6c1aa9ddd7aa0 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Wed, 4 Dec 2024 01:32:52 +0800 Subject: [PATCH] cmd/update: avoid switching developers to `stable` branch Checking for `HOMEBREW_NO_INSTALL_CLEANUP` was added in #18825, but this breaks developers by switching them to the stable branch. Setting `HOMEBREW_NO_UPDATE_CLEANUP` when `HOMEBREW_NO_INSTALL_CLEANUP` is set seems like a relatively recent addition, so I don't think it hurts to just remove it. We can add it back (correctly) if there are users that need it. --- Library/Homebrew/cmd/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 4c0bc7c601..66be9ac6b4 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -375,7 +375,7 @@ EOS if [[ -z "${HOMEBREW_UPDATE_TO_TAG}" ]] then - if [[ -n "${HOMEBREW_DEVELOPER}" || -n "${HOMEBREW_DEV_CMD_RUN}" ]] && [[ -n "${HOMEBREW_NO_INSTALL_CLEANUP}" ]] + if [[ -n "${HOMEBREW_DEVELOPER}" || -n "${HOMEBREW_DEV_CMD_RUN}" ]] then export HOMEBREW_NO_UPDATE_CLEANUP="1" else