From 39a0fec95d884ed6b6b620ff6fcb3d16fc23ff9f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 18 Nov 2016 09:34:58 +0000 Subject: uninstall: ignore deprecations when uninstalling. Handle `MethodDeprecatedError` because we want people to be able to uninstall regardless of the content of their formula. --- Library/Homebrew/cmd/uninstall.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library/Homebrew/cmd') 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) -- cgit v1.2.3