From 6b5f912a3af40994a62ed09b4ab2124d9800c0e6 Mon Sep 17 00:00:00 2001 From: Kaito Udagawa Date: Tue, 19 Oct 2021 23:39:58 +0900 Subject: [PATCH] Catch ENOTEMPTY in cleanup_keg #11904 --- Library/Homebrew/cleanup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb index ab0f7b5e85..cf5952e385 100644 --- a/Library/Homebrew/cleanup.rb +++ b/Library/Homebrew/cleanup.rb @@ -269,7 +269,7 @@ module Homebrew def cleanup_keg(keg) cleanup_path(keg) { keg.uninstall(raise_failures: true) } - rescue Errno::EACCES => e + rescue Errno::EACCES, Errno::ENOTEMPTY => e opoo e.message unremovable_kegs << keg end