Handle directory creation collisions hit during parallel builds.

This commit is contained in:
Jeffrey Townsend
2018-05-03 19:09:40 +00:00
parent 1648449f43
commit fbb7f751a8

View File

@@ -301,8 +301,11 @@ class OnlPackage(object):
#
if dst.endswith('/'):
dstpath = os.path.join(root, dst)
if not os.path.exists(dstpath):
try:
os.makedirs(dstpath)
except OSError, e:
if e.errno != os.errno.EEXIST:
raise
shutil.copy(src, dstpath)
else:
dstpath = os.path.join(root, os.path.dirname(dst))