diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-08-02 17:19:32 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-08-02 17:19:32 +0000 |
commit | 2c291e994f369cb29da3ab2a4d169e9c669ef20c (patch) | |
tree | ae49c98602dda8e8a7d18715ce53e81c4324e2a0 /pym | |
parent | 595c0dfbb94be910b5a46c7cb2fe56cebca9a18c (diff) | |
download | portage-2c291e994f369cb29da3ab2a4d169e9c669ef20c.tar.gz portage-2c291e994f369cb29da3ab2a4d169e9c669ef20c.tar.bz2 portage-2c291e994f369cb29da3ab2a4d169e9c669ef20c.zip |
For bug #187518, handle EISDIR thrown from mkdir when the directory already exists on FreeBSD. (trunk r7544)
svn path=/main/branches/2.1.2/; revision=7545
Diffstat (limited to 'pym')
-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 d71add57e..8e4a8cb44 100644 --- a/pym/portage_util.py +++ b/pym/portage_util.py @@ -852,7 +852,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) |