diff options
| author | Mike McQuaid | 2016-11-18 09:34:58 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-11-18 09:34:58 +0000 |
| commit | 39a0fec95d884ed6b6b620ff6fcb3d16fc23ff9f (patch) | |
| tree | 6257e229ec8041b1e71d9b2b2c92cc20748604ec | |
| parent | 649c7ab48ae013f07a29a706b63d4d778e456b24 (diff) | |
| download | brew-39a0fec95d884ed6b6b620ff6fcb3d16fc23ff9f.tar.bz2 | |
uninstall: ignore deprecations when uninstalling.
Handle `MethodDeprecatedError` because we want people to be able to
uninstall regardless of the content of their formula.
| -rw-r--r-- | Library/Homebrew/cmd/uninstall.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index b37e67224..505d4e4b2 100644 --- a/Library/Homebrew/cmd/uninstall.rb +++ b/Library/Homebrew/cmd/uninstall.rb @@ -81,6 +81,9 @@ module Homebrew all_kegs = kegs_by_rack.values.flatten(1) check_for_dependents all_kegs + rescue MethodDeprecatedError + # Silently ignore deprecations when uninstalling. + nil end def check_for_dependents(kegs) |
