summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-08-02 17:19:00 +0000
committerZac Medico <zmedico@gentoo.org>2007-08-02 17:19:00 +0000
commit9d618bf6e536fec63b990f6352a80cac640a6dc2 (patch)
treee627ec7eb622890268edc23f3a379387f3315f25
parent540915211bf0b909b2ec939856fae0993aa231ae (diff)
downloadportage-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.py2
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)