summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico2012-09-04 03:07:29 (GMT)
committerZac Medico2012-09-04 03:07:29 (GMT)
commited68a1bdb22fec478ac39b377961508cd3a30617 (patch)
tree8cb4ae709939408a3379fc8aa03dbd985a0ab7ee
parent24a91dd6fb9bd9acdc5a72d2e830128c0f06bf98 (diff)
EbuildBuildDir: ignore rmdir failure, bug #400641
-rw-r--r--pym/_emerge/EbuildBuildDir.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pym/_emerge/EbuildBuildDir.py b/pym/_emerge/EbuildBuildDir.py
index 9773bd7..5d6a262 100644
--- a/pym/_emerge/EbuildBuildDir.py
+++ b/pym/_emerge/EbuildBuildDir.py
@@ -7,7 +7,6 @@ import portage
from portage import os
from portage.exception import PortageException
from portage.util.SlotObject import SlotObject
-import errno
class EbuildBuildDir(SlotObject):
@@ -98,10 +97,8 @@ class EbuildBuildDir(SlotObject):
if catdir_lock.wait() == os.EX_OK:
try:
os.rmdir(self._catdir)
- except OSError as e:
- if e.errno not in (errno.ENOENT,
- errno.ENOTEMPTY, errno.EEXIST, errno.EPERM):
- raise
+ except OSError:
+ pass
finally:
catdir_lock.unlock()