summaryrefslogtreecommitdiffstats
path: root/bitbake/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:52 +0100
commite1c1ee19e04eca1ffd09b49104a7b49e89c74d12 (patch)
tree4e126974bdf758f692ad27420614dd0963b12ccc /bitbake/lib/bb/fetch2/git.py
parent90b7683f782a99ecf080ae8a09e0fd9164bf44ae (diff)
downloadpoky-e1c1ee19e04eca1ffd09b49104a7b49e89c74d12.tar.gz
bitbake: 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. (Bitbake rev: 1270a07713e2a6c6e6fadcc61b785aebc99ae17b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index af7c623ccb..bb681a46ec 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -257,6 +257,7 @@ class Git(FetchMethod):
257 indirectiondir = destdir[:-1] + ".indirectionsymlink" 257 indirectiondir = destdir[:-1] + ".indirectionsymlink"
258 if os.path.exists(indirectiondir): 258 if os.path.exists(indirectiondir):
259 os.remove(indirectiondir) 259 os.remove(indirectiondir)
260 bb.mkdirhier(os.path.dirname(indirectiondir))
260 os.symlink(ud.clonedir, indirectiondir) 261 os.symlink(ud.clonedir, indirectiondir)
261 clonedir = indirectiondir 262 clonedir = indirectiondir
262 263