diff options
Diffstat (limited to 'pym/portage/util.py')
-rw-r--r-- | pym/portage/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py index d10cb1d6a..894ea44a0 100644 --- a/pym/portage/util.py +++ b/pym/portage/util.py @@ -856,7 +856,7 @@ def ensure_dirs(dir_path, *args, **kwargs): created_dir = True except OSError, oe: func_call = "makedirs('%s')" % dir_path - if errno.EEXIST == oe.errno: + if oe.errno in (errno.EEXIST, errno.EISDIR): pass elif oe.errno == errno.EPERM: raise OperationNotPermitted(func_call) |