aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-11 00:27:43 +0100
committerMax Howell2009-08-11 00:27:43 +0100
commitbd86ab508adf5acc95731b6a8ea5b35a1e50f751 (patch)
tree3d4ae9cfcd1809a1e16bbf35bac96e6b1fd16834 /Library
parent3b262d0b2349291ade041919a85fd2f75fd8528a (diff)
downloadbrew-bd86ab508adf5acc95731b6a8ea5b35a1e50f751.tar.bz2
rmdir_if_possible should ignore EACCES
It was raising an exception, which stopped prune in its tracks when something was installed root, eg. Fuse.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/pathname+yeast.rb2
1 files changed, 1 insertions, 1 deletions
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