aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-03 13:44:08 -0700
committerChris Larson <chris_larson@mentor.com>2010-11-08 07:59:54 -0700
commitbbe3dc4506c604a24010b4aeb8c3deee760fd7ae (patch)
tree9f645f3a2d0607d574e1c018af195916cbfe6a20
parenta441183b79563e1984df06a002316a3850319ef5 (diff)
downloadopenembedded-darwin.tar.gz
oe.path: also rmtree on EPERMdarwin
Ran into this under OSX for some reason. Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--lib/oe/path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oe/path.py b/lib/oe/path.py
index 65b438a0e3..be8a0c9296 100644
--- a/lib/oe/path.py
+++ b/lib/oe/path.py
@@ -49,7 +49,7 @@ def remove(path, recurse=True):
try:
os.unlink(path)
except OSError, exc:
- if recurse and exc.errno == errno.EISDIR:
+ if recurse and exc.errno in (errno.EISDIR, errno.EPERM):
shutil.rmtree(path)
elif exc.errno != errno.ENOENT:
raise