diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index b37e672248..505d4e4b2b 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)