summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 08:37:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 12:13:38 +0100
commit1270a07713e2a6c6e6fadcc61b785aebc99ae17b (patch)
tree449dde348aa20ea5cf2123c7653c981d15049dc0 /lib/bb/fetch2/git.py
parent2793413106c925b06783beb7413aa87cbcf246c3 (diff)
downloadbitbake-1270a07713e2a6c6e6fadcc61b785aebc99ae17b.tar.gz
fetch2/git: Add missing mkdir
bitbake-selftest is failing due to directories not being created. This adds in an appropriate mkdir so the tests can complete. Presumably in general OE use, something else is ensuring the parent directory is created. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/git.py')
-rw-r--r--lib/bb/fetch2/git.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index af7c623cc..bb681a46e 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -257,6 +257,7 @@ class Git(FetchMethod):
indirectiondir = destdir[:-1] + ".indirectionsymlink"
if os.path.exists(indirectiondir):
os.remove(indirectiondir)
+ bb.mkdirhier(os.path.dirname(indirectiondir))
os.symlink(ud.clonedir, indirectiondir)
clonedir = indirectiondir