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:20:50 +0000 (13:20 -0700)
pym/_emerge/EbuildBuildDir.py

index 851ba7e324f04341eb65210c988b6e55d2c2f103..1da3c93ae2c755aa3b6fff3b4a74a1c9b77c15ab 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()