diff options
-rw-r--r-- | lib/oe/path.py | 2 |
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 |