From: Richard Purdie Date: Mon, 24 Sep 2012 08:37:09 +0000 (+0000) Subject: bitbake: fetch2/git: Add missing mkdir X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1c1ee19e04eca1ffd09b49104a7b49e89c74d12;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index af7c623ccb4..bb681a46ece 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/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