Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 389218 Details for
Bug 529120
portage.cache.fs_template._ensure_dirs is not parallel safe, os.mkdir may throw EEXIST
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
_ensure_dirs: ignore EEXIST from mkdir
portage-ensure_dirs-parallel.patch (text/plain), 591 bytes, created by
Michael Haubenwallner (RETIRED)
on 2014-11-13 07:34:16 UTC
(
hide
)
Description:
_ensure_dirs: ignore EEXIST from mkdir
Filename:
MIME Type:
Creator:
Michael Haubenwallner (RETIRED)
Created:
2014-11-13 07:34:16 UTC
Size:
591 bytes
patch
obsolete
>diff --git a/pym/portage/cache/fs_template.py b/pym/portage/cache/fs_template.py >index de4fe4b..6edb649 100644 >--- a/pym/portage/cache/fs_template.py >+++ b/pym/portage/cache/fs_template.py >@@ -4,6 +4,7 @@ > > import os as _os > import sys >+import errno > from portage.cache import template > from portage import os > >@@ -72,6 +73,9 @@ class FsBased(template.database): > os.mkdir(base, perms) > if self._gid != -1: > os.chown(base, -1, self._gid) >+ except OSError as e: >+ if e.errno != errno.EEXIST: >+ raise > finally: > if self._perms != -1: > os.umask(um)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 529120
: 389218