[U-Boot] [PATCH] buildman: Create parent directories as necessary
Thierry Reding
thierry.reding at gmail.com
Mon Aug 18 08:54:23 CEST 2014
From: Thierry Reding <treding at nvidia.com>
When creating build directories also create parents as necessary. This
fixes a failure when building a hierarchical branch (i.e. foo/bar).
Signed-off-by: Thierry Reding <treding at nvidia.com>
---
tools/buildman/builderthread.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py
index 32297e20e8f0..ca309c46d963 100644
--- a/tools/buildman/builderthread.py
+++ b/tools/buildman/builderthread.py
@@ -19,7 +19,7 @@ def Mkdir(dirname):
dirname: Directory to create
"""
try:
- os.mkdir(dirname)
+ os.makedirs(dirname)
except OSError as err:
if err.errno == errno.EEXIST:
pass
--
2.0.4
More information about the U-Boot
mailing list