diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-08-02 17:19:00 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-08-02 17:19:00 +0000 |
commit | 9d618bf6e536fec63b990f6352a80cac640a6dc2 (patch) | |
tree | e627ec7eb622890268edc23f3a379387f3315f25 | |
parent | 540915211bf0b909b2ec939856fae0993aa231ae (diff) | |
download | portage-9d618bf6e536fec63b990f6352a80cac640a6dc2.tar.gz portage-9d618bf6e536fec63b990f6352a80cac640a6dc2.tar.bz2 portage-9d618bf6e536fec63b990f6352a80cac640a6dc2.zip |
For bug #187518, handle EISDIR thrown from mkdir when the directory already exists on FreeBSD.
svn path=/main/trunk/; revision=7544
-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) |