]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake/lib/bb/build.py: fix the task flags cleandirs
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 6 Jan 2014 09:52:35 +0000 (04:52 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Jan 2014 13:13:56 +0000 (13:13 +0000)
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 <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/build.py

index 1524da00494ac1ae9cd3d613387a9bdb42e14a69..3aa63758c118cc44f1e988ed4b6b1e6fd1454fa9 100644 (file)
@@ -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')