From bd86ab508adf5acc95731b6a8ea5b35a1e50f751 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 11 Aug 2009 00:27:43 +0100 Subject: rmdir_if_possible should ignore EACCES It was raising an exception, which stopped prune in its tracks when something was installed root, eg. Fuse. --- Library/Homebrew/pathname+yeast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb index f0abda91e..894c26e4b 100644 --- a/Library/Homebrew/pathname+yeast.rb +++ b/Library/Homebrew/pathname+yeast.rb @@ -74,7 +74,7 @@ class Pathname def rmdir_if_possible rmdir rescue SystemCallError => e - raise unless e.errno == Errno::ENOTEMPTY::Errno + raise unless e.errno == Errno::ENOTEMPTY::Errno or e.errno == Errno::EACCES::Errno end def chmod_R perms -- cgit v1.2.3