Merge pull request #12260 from umireon/umireon-cleanup-warning

Catch ENOTEMPTY in cleanup_keg
This commit is contained in:
Mike McQuaid 2021-10-19 16:33:36 +01:00 committed by GitHub
commit 58662f8da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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