unmerge: ignore rmdir EPERM from mount point
authorZac Medico <zmedico@gentoo.org>
Mon, 27 Dec 2010 22:47:28 +0000 (14:47 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 27 Dec 2010 22:47:28 +0000 (14:47 -0800)
This will fix bug #349757.

pym/portage/dbapi/vartree.py

index 8e3f9bae415b088e84b435155da689258c1e0d6e..9f75da21b61fcd3dbe4c69645d413d5925660cd2 100644 (file)
@@ -1767,7 +1767,8 @@ class dblink(object):
                        ignored_rmdir_errnos = (
                                errno.EEXIST, errno.ENOTEMPTY,
                                errno.EBUSY, errno.ENOENT,
-                               errno.ENOTDIR, errno.EISDIR)
+                               errno.ENOTDIR, errno.EISDIR,
+                               errno.EPERM)
                        modprotect = os.path.join(self._eroot, "lib/modules/")
 
                        def unlink(file_name, lstatobj):