-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For cleaner upgrade, have Homebrew .munki recipe delete old Homebrew subdirs first #103
Conversation
To avoid an install loop. More details in autopkg#102
Actually, I think the fix has to be slightly more complicated than what I've proposed here. If you blow out the entire |
Very odd. I don't see why it wouldn't update. The package seems to deliver the new payload, which should overwrite the old payload. The postinstall script in the package does seem cleanup, but it shouldn't prevent the version reported from updating... |
Filed an issue with brew: Homebrew/brew#19287 |
@aysiu Played around with this and think I have a solution. The Homebrew installer and supporting commands are heavily entrenched in git. Best I can tell #!/bin/zsh
if [[ $(uname -m) == "x86_64" ]]; then
brew_dir="/usr/local/Homebrew"
else
brew_dir="/opt/homebrew"
fi
if [[ -d "$brew_dir" ]]; then
/bin/rm -rf "$brew_dir/.git"
/bin/rm -rf "$brew_dir/Library/Homebrew"
fi If I only remove
Which clued me into the diff at |
Great find, @nstrauss ! Yean, that tracks with my testing:
|
@nstrauss I think this commit should do it. Let me know what you think. |
To avoid an install loop. More details in #102