From 1d3a139016f4403cf406cb6e96d95e665945fe93 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Mon, 6 Jan 2014 04:52:35 -0500 Subject: bitbake: 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] (Bitbake rev: 0636797d75874ce4577f29011d69c56a4c6b9e89) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- bitbake/lib/bb/build.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 1524da0049..3aa63758c1 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/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') -- cgit v1.2.3-54-g00ecf