homebrew_cask: Pass install_options during uninstall (#44938)

Until https://github.com/Homebrew/homebrew-cask/issues/40866 is fixed,
install_options should be passed when uninstalling casks to ensure that
all artefacts are removed.
pull/46119/head
newtonne 6 years ago committed by John R Barker
parent f20938788a
commit aac1ce7333

@ -651,10 +651,12 @@ class HomebrewCask(object):
)
raise HomebrewCaskException(self.message)
cmd = [opt
for opt in (self.brew_path, 'cask', 'uninstall', self.current_cask)
if opt]
opts = (
[self.brew_path, 'cask', 'uninstall', self.current_cask]
+ self.install_options
)
cmd = [opt for opt in opts if opt]
rc, out, err = self.module.run_command(cmd)
if not self._current_cask_is_installed():

Loading…
Cancel
Save