diff options
| author | Max Howell | 2009-08-11 00:27:43 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-11 00:27:43 +0100 |
| commit | 48a5d9b6117ebdf135be316963bd7ee0404afc22 (patch) | |
| tree | b14fa6a460736dec3637de85d494d1880ad6fb5d /Library | |
| parent | ea7c8915a2885f3c544cfd63594dacf2144874ca (diff) | |
| download | homebrew-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.rb | 2 |
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 |
