[go: up one dir, main page]

Skip to content

Commit

Permalink
fontbuild: fix issue where building in parallel could cause some buil…
Browse files Browse the repository at this point in the history
…ds to fail because of a file system race condition
  • Loading branch information
rsms committed Sep 11, 2018
1 parent b9274ee commit 1883658
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion misc/fontbuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ from common import BASEDIR, VENVDIR, getGitHash, getVersion

import argparse
import datetime
import errno
import glyphsLib
import logging
import re
Expand Down Expand Up @@ -38,8 +39,11 @@ def sighandler(signum, frame):


def mkdirs(path):
if not os.access(path, os.F_OK):
try:
os.makedirs(path)
except OSError as e:
if e.errno != errno.EEXIST:
raise # raises the error again


def fatal(msg):
Expand Down

0 comments on commit 1883658

Please sign in to comment.