aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-04 03:07:29 (GMT)
committerZac Medico <zmedico@gentoo.org>2012-09-04 03:07:29 (GMT)
commited68a1bdb22fec478ac39b377961508cd3a30617 (patch)
tree8cb4ae709939408a3379fc8aa03dbd985a0ab7ee
parentetc-update: add --quiet for bug #416917 (diff)
downloadportage-ed68a1bdb22fec478ac39b377961508cd3a30617.zip
portage-ed68a1bdb22fec478ac39b377961508cd3a30617.tar.gz
portage-ed68a1bdb22fec478ac39b377961508cd3a30617.tar.bz2
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()