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
commit48a5d9b6117ebdf135be316963bd7ee0404afc22 (patch)
treeb14fa6a460736dec3637de85d494d1880ad6fb5d /Library
parentea7c8915a2885f3c544cfd63594dacf2144874ca (diff)
downloadhomebrew-48a5d9b6117ebdf135be316963bd7ee0404afc22.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