Bug 703878: Fix potential race condition in header.py. r=khuey

This commit is contained in:
Joerg Sonnenberger
2011-12-22 18:38:27 -05:00
parent 914747e587
commit b6d7a9c94e

View File

@@ -527,6 +527,12 @@ if __name__ == '__main__':
outfd.close()
if options.depfile is not None:
dirname = os.path.dirname(options.depfile)
if dirname:
try:
os.makedirs(dirname)
except:
pass
depfd = open(options.depfile, 'w')
deps = [dep.replace('\\', '/') for dep in idl.deps]