From: Robert Yang Date: Mon, 6 Jan 2014 09:52:35 +0000 (-0500) Subject: bitbake/lib/bb/build.py: fix the task flags cleandirs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0636797d75874ce4577f29011d69c56a4c6b9e89;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake/lib/bb/build.py: fix the task flags cleandirs The user manual said: 'cleandirs' - directories which should created before the task runs but should be empty But it only removes the dir, doesn't create it [YOCTO #5703] Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- diff --git a/lib/bb/build.py b/lib/bb/build.py index 1524da00494..3aa63758c11 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -154,6 +154,7 @@ def exec_func(func, d, dirs = None): if cleandirs: for cdir in d.expand(cleandirs).split(): bb.utils.remove(cdir, True) + bb.utils.mkdirhier(cdir) if dirs is None: dirs = flags.get('dirs')