EbuildBuildDir: allow EPERM when removing catdir
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Oct 2010 20:20:50 +0000 (13:20 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Oct 2010 20:24:36 +0000 (13:24 -0700)
pym/_emerge/EbuildBuildDir.py

index ba18269b1010b1a6fafbff5c11ad260763e824e4..c901fe667b1416435b4e1a24e5780aa773a12985 100644 (file)
@@ -90,7 +90,7 @@ class EbuildBuildDir(SlotObject):
                        os.rmdir(self._catdir)
                except OSError as e:
                        if e.errno not in (errno.ENOENT,
-                               errno.ENOTEMPTY, errno.EEXIST):
+                               errno.ENOTEMPTY, errno.EEXIST, errno.EPERM):
                                raise
                finally:
                        catdir_lock.unlock()