Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Charles Burton
Gaudi
Commits
27a15f3d
Commit
27a15f3d
authored
Oct 09, 2015
by
Graeme A Stewart
Browse files
Remove manual race condition
Committed accidentally!
parent
51bbf002
Changes
1
Hide whitespace changes
Inline
Side-by-side
GaudiPolicy/scripts/install.py
View file @
27a15f3d
...
...
@@ -217,7 +217,6 @@ def update(src,dest,old_dest = None, syml = False, logdir = realpath(".")):
# To avoid race conditions on makedirs(), use EAFP (see GAUDI-1105)
if
(
not
exists
(
realdest
))
or
(
getmtime
(
realsrc
)
>
getmtime
(
realdest
)):
try
:
makedirs
(
dest_path
)
# <- manual race condition
makedirs
(
dest_path
)
print
"Created dir '{0}'"
.
format
(
dest_path
)
except
OSError
as
e
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment