Skip to content
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

Update virtualbox-extension-pack: uninstall_postflight #40617

Merged
merged 1 commit into from
Nov 27, 2017
Merged

Update virtualbox-extension-pack: uninstall_postflight #40617

merged 1 commit into from
Nov 27, 2017

Conversation

commitay
Copy link
Contributor

@commitay commitay commented Nov 11, 2017

#40615

This allows the uninstall step to be skipped if the dependant Cask has been uninstalled, which would have removed the files installed by this Cask.

@commitay commitay added on hold and removed on hold labels Nov 11, 2017
@@ -24,6 +24,7 @@
end

uninstall_postflight do
next unless File.exist?('/usr/local/bin/VBoxManage')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a break instead, as it’s not a loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break doesn't seem to work but I'm probably not using it correctly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about return?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return errors in both cases.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a block, so it must be next.

@commitay commitay merged commit 91a733c into Homebrew:master Nov 27, 2017
@commitay commitay deleted the virtualbox-extension-pack branch November 27, 2017 22:54
@Homebrew Homebrew locked and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants