aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.sh
diff options
context:
space:
mode:
authorMike McQuaid2016-09-17 13:25:32 +0100
committerMike McQuaid2016-09-17 13:25:32 +0100
commit8aa18510c492c0167978df4e209455af4ff215e3 (patch)
tree9591af68c52c7df65080050a22c396d72929ebec /Library/Homebrew/cmd/update.sh
parent10f2bc2deabad58c4f6b80481ccc913faeb85510 (diff)
downloadbrew-8aa18510c492c0167978df4e209455af4ff215e3.tar.bz2
Always run LinkedKegs migration (if needed).
Ensure that `brew update` always runs the LinkedKegs migration if needed as it may not have been run by `brew update` if it was using `--preinstall` or a `git pull` etc. Also, if the old paths still exist: just use them instead. Finally, always try to unlink/unpin before link/pin. Fixes https://github.com/Homebrew/homebrew-core/issues/4918.
Diffstat (limited to 'Library/Homebrew/cmd/update.sh')
-rw-r--r--Library/Homebrew/cmd/update.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index ee6048ca8..67b3699ed 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -534,6 +534,7 @@ EOS
if [[ -n "$HOMEBREW_UPDATED" ||
-n "$HOMEBREW_UPDATE_FAILED" ||
-n "$HOMEBREW_UPDATE_FORCE" ||
+ -d "$HOMEBREW_LIBRARY/LinkedKegs" ||
(-n "$HOMEBREW_DEVELOPER" && -z "$HOMEBREW_UPDATE_PREINSTALL") ]]
then
brew update-report "$@"