Merge pull request #12260 from umireon/umireon-cleanup-warning
Catch ENOTEMPTY in cleanup_keg
This commit is contained in:
		
						commit
						58662f8da8
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user